Questions tagged [deeplearning4j]

Deeplearning4j is commercial-grade, open-source, distributed deep-learning library written for Java and Scala. Integrated with Hadoop and Spark, DL4J is designed to be used in business environments, rather than as a research tool.

Deeplearning4j is a deep learning programming library written for Java and the Java virtual machine (JVM) and a computing framework with wide support for deep learning algorithms (such as Boltzmann machine, deep belief net, deep autoencoder, stacked denoising autoencoder and recursive neural tensor network, word2vec, doc2vec, and GloVe).

These algorithms all include distributed parallel versions that integrate with Apache Hadoop and Apache Spark.

For more information: deeplearning4j site, source code, support forum

Related Tags:

413 questions
0
votes
4 answers

Java Deeplearning4j image in wrong shape

I have a small problem with Java and machine learning. I have trained a model with Keras and it works as expected when I use Python to predict images. The shape on which the model is trained was [ width, height, RGB ]. But when I load an image in…
0
votes
1 answer

dl4j ComputationGraph error: "cannot do forward pass: inputs not set"

I'm trying to pass multiple inputs to a ComputationGraph, but keep getting the error "cannot do forward pass: inputs not set". What is my mistake here? ArrayList inAndOutNames = new ArrayList<>(); String[] inputNames = new…
Fi0x
  • 3
  • 2
0
votes
1 answer

Failed to allocate [xxx] bytes from HOST memory

After fixing Error loading ND4J Compressors (thank you Adam!), I get the following error: java.lang.RuntimeException: Failed to allocate 4735031021 bytes from HOST memory (or java.lang.RuntimeException: cudaMalloc failed; Bytes: [4735031021]; Error…
apollox
  • 101
  • 7
0
votes
1 answer

ERROR org.nd4j.linalg.compression.BasicNDArrayCompressor - Error loading ND4J Compressors via service loader

Trying to run DL4J using NVIDIA cuDNN library (Windows10): https://deeplearning4j.konduit.ai/multi-project/explanation/configuration/backends/cudnn In my pom I added: 16
apollox
  • 101
  • 7
0
votes
1 answer

ModelSerializer.writeModel and saveUpdater param

According to the description from the link: https://github.com/deeplearning4j/deeplearning4j-examples/blob/master/dl4j-examples/src/main/java/org/deeplearning4j/examples/quickstart/features/modelsavingloading/SaveLoadMultiLayerNetwork.java boolean…
apollox
  • 101
  • 7
0
votes
0 answers

Using DL4J in web application - RuntimeException: Op [matmul] execution failed

I have a MultiLayerNetwork which is loaded in an application which is loaded on a payara server. The model loads fine but on requesting an output on a INDArray I receive a RuntimeException. The system I'm working on seems to work fine during the…
0
votes
1 answer

LSTM in DL4J - All output values are the same

I'm trying to create a simple LSTM using DeepLearning4J, with 2 input features and a timeseries length of 1. I'm having a strange issue however; after training the network, inputting test data yields the same, arbitrary result regardless of the…
0
votes
0 answers

ND4J NoAvailableBackendException despite following all documentation steps

I have an annoying issue with ND4J while attempting to implement deeplearning4j into a project. As the title already says, it is a NoAvailableBackendException. I am getting this error with maven, the full pom.xml is here. The stacktrace is here. The…
0
votes
1 answer

DL4J LSTM - Contradictory Errors

I'm trying to create a simple LSTM using Deeplearning4J in Java, with 2 input features and a timeseries length of 1. However, I'm running into an error concerning the number of input dimensions when calling predict(). import…
0
votes
1 answer

Could not find class for TF Ops: TensorListFromTensor when I'm trying to import a trained model with Tensorflow in DeepLearning4j

I'm new to Tensorflow and I'm trying to import a frozen graph (.pb file) that was trained in Python into a Java project using Deeplearning4j. It seems that the model was saved successfully and it is working in Python, but when I try to import it…
0
votes
1 answer

how to update vocabulary after training Word2vec model using deeplearning4java

I used deeplearning4j library to do vectorization task using word2vec. I need to vectorize new word after training the model using a specific corpus. so how to add this new word and update the training to get a new weight vector for the new word? my…
0
votes
1 answer

no jnind4jcpu in java.library.path when using version M2 of DeepLearning4j

I am working with DeepLearning4j library. I am running everything on HPC and I generate a jar file to submit with spark-submit. I was using the version beta7 and I didn't have any problem. Recently, I wanted to upgrade the version to M2 but I got…
0
votes
1 answer

DataSetIterator.getLabels() returning null (DL4J)

I am trying to get the label list so I can compare that to my probability output. However whenever I do my iterator.getLabels() it returns a null instead of the list of labels. int numLinesToSkip = 0; char delimeter = ','; int labelIndex = 0; int…
rngoode1
  • 1
  • 1
0
votes
1 answer

MultiLayerConfigureation returns DL4JInvalidInputException: Input size

My CSVDataset is structured as N,P,K,temperature,humidity,ph,rainfall,label 90,42,43,20.87974371,82.00274423,6.502985292000001,202.9355362,rice The goal is to predict the recommend the optimal crop given the features. My pipeline is as…
0
votes
0 answers

I want to implement python trained .h5 model in java,but getting errors while importing it

String simpleMlp = new ClassPathResource( "semantic.h5").getFile().getPath(); MultiLayerNetwork model = KerasModelImport. importKerasSequentialModelAndWeights(simpleMlp); i used the above code for…