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
1
vote
1 answer

My LSTM network is very slow. What to optimize?

I have following deeplearning4j network (and other similar) MultiLayerConfiguration conf = new NeuralNetConfiguration.Builder() .updater(new Adam.Builder().learningRate(2e-2).build()) .l2(1e-5) …
Andrew
  • 13
  • 3
1
vote
1 answer

When to close DL4J INDArrays

I created a custom DataSetIterator. It works by randomly generating two INDArrays (one for input and one for output) in the next method and creating a DataSet out of it: int[][] inputArray = new int[num][NUM_INPUTS]; int[][] expectedOutputArray =…
dan1st
  • 12,568
  • 8
  • 34
  • 67
1
vote
0 answers

Input data model for DeepLearning4J LSTM network

I'm trying to create an LSTM network in DeepLearning4J to classify random-length strings of N characters. I believe I have the network set up correctly, but I can't find documentation describing how the SequenceRecordReader input should be formed. I…
Nathan Kronenfeld
  • 473
  • 1
  • 5
  • 14
1
vote
2 answers

I have a Single column data. I want to reshape it so i can use this into RNN

I tried to reshape this but I'm getting error. I have to use RNN before that I have to reshape it. Any idea? X_train=np.reshape(Y,(Y.shape[0],Y.shape[1],1)) IndexError: tuple index out of range dataset
1
vote
0 answers

ClassCastException while importing Keras model

I am relatively new to Java and am currently working on a neural network in deeplearning4j. I've got a sequential Keras model (.h5) and try to import it into my project using the following lines: String path =…
art-m
  • 9
  • 5
1
vote
0 answers

Failed to execute goal org.bytedeco:javacpp:1.5.3:build (javacpp-cppbuild-compile) on project libnd4j:

I downloaded the repository from https://github.com/eclipse/deeplearning4j. From the directory, I executed mvn clean install. After a while I got this error : Failed to execute goal org.bytedeco:javacpp:1.5.3:build (javacpp-cppbuild-compile) on…
Nitin
  • 31
  • 1
  • 6
1
vote
2 answers

Bridging Knime, Keras and DL4J – Exceptions when loading h5 model

I’m working on a project which needs to train a DNN and then run the trained model in a Java environment. As the training data requires a lot of manipulation I’ve used Knime and its Keras libraries to do most of the work, and I’m exported the…
1
vote
1 answer

Is there a way to set up dependency for javacv's native part in maven, without manual installation and setting up java.library.path?

I have dependencies on org.bytedeco:opencv:4.1.2-1.5.2 that is in turn added to the project by org.datavec datavec-data-image ${datavec.version} And for the…
Eljah
  • 4,188
  • 4
  • 41
  • 85
1
vote
1 answer

Error loading keras model in Deeplearning4j - java

I trained my model in python keras. I am trying to load that in java code but getting following error How to fix this…
Jeya Kumar
  • 1,002
  • 1
  • 13
  • 36
1
vote
1 answer

error loading keras model using DL4j: "nn.modelimport.keras.Hdf5Archive :Unexpected end-of-input within/between OBJECT entries"

I am using DL model trained with keras and tensor flow (saved to h5 file). in a spring boot microservice also dockerized. I need help to solve this error when I try to running a docker image with this spring boot service invoking keras model using…
1
vote
0 answers

Playing snake game using reinforcement learning and DQN (with deeplearning4j)

I am trying to make an AI to play simple Snake game following this article. With my current solution snake is able to come up to score of around 35 points. For some reason it will handle the walls correctly but would almost every time die by hitting…
mirzak
  • 1,043
  • 4
  • 15
  • 30
1
vote
2 answers

word2vec best library

Hey I want to use word2vec algorithm without implementing it (I saw a lot of places that teaches how to implement one). does anyone can tell me what is the best lib to use? I saw there is Genesim, and Deeplearning4j. also TensorFlow but I can't…
1
vote
0 answers

java.lang.NoClassDefFoundError: org/nd4j/linalg/api/ops/impl/transforms/floating/Histogram

Why I'm getting error java.lang.NoClassDefFoundError: org/nd4j/linalg/api/ops/impl/transforms/floating/Histogram while trying to set up the listener like gan.setListeners(new StatsListener(statsStorage)); for the GAN network like this (from the…
Eljah
  • 4,188
  • 4
  • 41
  • 85
1
vote
1 answer

MultiDataSetIterator with INDArrays (not csv files) and multiple outputs DL4J

I want to train a ComputationGraph which has two outputs (this model) and in my script I have INDArrays (1 input and 2 outputs) ready to be sent in the neural network and it seems that I should use a MultiDataSetIterator to be able to setup…
plguillou
  • 38
  • 4
1
vote
1 answer

CSVRecordReader and Un-terminated quoted field at end of CSV line

I have a problem with the datasets that I am using. They are CSV that contain fake news. My problem is with the CSVRecordReader class, which is what DataVec (Deeplearning4j) offers me. I am trying to make a spark transformation process. My problem…
Yuniel Acosta
  • 31
  • 1
  • 10