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

DL4J - Is there a way to restrict the prediction of a model

I trained a Mnist model with DL4J. When I use this model in inference mode: INDArray prediction = myModel.output(myINDArrayImage); That gives me a prediction in an INDArray, it works properly. The size of this INDArray is equal to number of output…
0
votes
1 answer

RL4J A3C DeepLearning Throwing a Output from network is not a probability distribution

So right now I am taking the painful dive of exploring deep learning using Deep Learning 4j specifically RL4j and reinforcement learning. I have been relatively unsuccessful in teaching my computer how to play snake but I persevere. Anyway so I…
Austin
  • 726
  • 4
  • 22
0
votes
1 answer

Create a DataSet with multiple labels and unknown number of classes in deeplearning4j

What DataSetIterator should I use in order to create a DataSet object that contains miultiple features and labels? I have only seen examples similar to 'Iris example' where there is only one label and it is known how many different labels there are.…
Mateusz Bugaj
  • 363
  • 1
  • 4
  • 12
0
votes
1 answer

Error while reading CSV data from file with RecordReader

I was want to load a training data set form file with RecodrReader and DataSetIterator but I get an error java.lang.ExceptionInInitializerError while trying and it doesn't tell me anything. Here is main logic and where error is occuring: public void…
Mateusz Bugaj
  • 363
  • 1
  • 4
  • 12
0
votes
1 answer

GradleException Could not create ZIP WekaDeeplearning4j

Trying to follow the simple installation instractions from https://deeplearning.cms.waikato.ac.nz/install/ $ git clone https://github.com/Waikato/wekaDeeplearning4j.git $ cd wekaDeeplearning4j $ ./gradlew build -x test publishToMavenLocal I get…
vicangel
  • 162
  • 2
  • 18
0
votes
0 answers

Iterations in DL4J?

From here and other sources TotalIteration = TotalExamples/Batchsize * Epochs. I have a CNN with 54 layers in total for 36000 examples, Batchsize of 12 and 3 Epochs. From the formula my Iteration is supposed to be 9000 but from the training-ui I am…
linker
  • 821
  • 1
  • 8
  • 20
0
votes
1 answer

deeplearning4j error when building NeuralNetConfiguration config class : org.nd4j.linalg.factory.Nd4jBackend$NoAvailableBackendException

I am trying to start a new project in intellij to do some deep reinforcement learning with deeplearning4j but am getting errors when building the NeuralNetConfiguration class. I think the problem is with my pom.xml file. Exception in thread "main"…
mgnbar
  • 1
0
votes
0 answers

Correct initialization of ImageRecordReader(long height, long width, long channels) for the larger size images in DL4J

I have the jpeg images much wider and higher than values, I'm passing with ImageRecordReader(long height, long width, long channels), say ImageRecordReader(100, 100, 1), while the images themselves are 2000x3000 pixels size and have 3 channels. Will…
Eljah
  • 4,188
  • 4
  • 41
  • 85
0
votes
1 answer

How to use my neural net properly with dl4j?

My problem: I implemented a feed forward model and a recurrent model with deeplearning4j to detect anomalies in a 1D signal. Maybe I'm missing an abstraction but I thought I could solve this problem the following way: Preprocess the data. I have 5…
0
votes
1 answer

Configure DeepLearning4J to work with MKL (instead of OpenBlas)

I'm using word2vec with DL4J (DeepLearning4J). When running the application, I see that the application always loads [OPENBLAS]. I can see this log entry: INFO [main] DefaultOpExecutioner - Blas vendor: [OPENBLAS] How can I configure it to load…
Omri
  • 1,058
  • 3
  • 14
  • 26
0
votes
1 answer

Basic deeplearning4j classification example

I need a very basic classification or similar example for deeplearning4j framework. I have the classic training set in form of pairs of already normalized double arrays [0.01, 0.45, 0.0, ....] -> [0.0, 0.1, 0.0, 0.0, ...] and need to: Build and…
0
votes
0 answers

Test issue in semantic segmentation using DL4J

I have trained a U-net based model on DL4J on medical images. The code above is for testing the model. my objective is to test the model on 34 2d medical images separately and get the segmentation metrics (accuracy, recall…) for each image, so i…
Abdel
  • 1
  • 1
0
votes
1 answer

AI backpropagation for a game

This question does not have code examples, I'm looking for an approach on how to do this. Imagine a neural network trying to learn a game, it has 4 possible outputs (moves it can do). In case the other player wins or gains an advantage after a (bad)…
0
votes
1 answer

DL4j 1.0.0-Beta6 Openblas does not use more than one thread

On my testing-server DL4j 1.0.0-Beta6 with Openblas is only using one thread. Initially it was reporting on thread, so I exported OMP_NUM_THREADS=4, which made DL4j log the correct number of threads on startup: [:19:30 CET 2020]…
0
votes
1 answer

Why does DL4j 1.0.0-Beta6 not use MKL any more?

For me DL4j 1.0.0-Beta6 is not using Intel MKL any more: WARN 28823 --- [:54:17 UTC 2020] org.nd4j.linalg.factory.Nd4jBackend : Skipped [JCublasBackend] backend (unavailable): java.lang.UnsatisfiedLinkError:…