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

DeepLearning4J Doc2Vec input structure

As I see less than 500 questions related on deeplearning4J here and most years old, first a different question: is DL4J dead? Do I really have to deal with horrible, horrible Python just to build my AI? I don't want to! Now real question, I feel a…
user13548229
0
votes
1 answer

Preparing data for deeplearning4j

I want to predict classifications of data that has the form: classifier;a textual description e.g. car;a vehicle with 4 wheels house;a building with a roof mouse;gray animal that frightens my mother I started with the following, but this gets me…
tobi
  • 753
  • 1
  • 14
  • 25
0
votes
1 answer

DeepLearning4J How can I add layers dynamically to a multi layer netowrk

I'm trying to test several combinations of multilayer networks, but the Network configuration Builder doesn't allow adding or removing layers after the build. If someone can give me a hint, thanks in advance.
0
votes
1 answer

Why DeepLearning4J CNN is returning not probabilities but only 0s and 1s in the INDArray output

I am playing with DL4J version 1.0.0-beta3 and trying to create a convolutional neural network for recognizing 32x32 images of chess pieces. Here is the code I use to create and train the net: public class BuildNetwork1 { public static void…
0
votes
1 answer

A3C ArrayOutOfBounds

Error whenever I call A3CDiscreteDense().train(); Exception in thread "Thread-7" java.lang.ArrayIndexOutOfBoundsException: -1 at java.util.ArrayList.elementData(Unknown Source) at java.util.ArrayList.get(Unknown Source) at…
Akash garg
  • 125
  • 6
0
votes
1 answer

How to apply MNIST trained NN on a big image

I have a Neural network (NN) in deeplearning4j trained with MNIST to recognise digits on an image. As MNIST set contains 28x28 pixel images, I am able to predict class of an 28x28 image using this NN. I am trying to find out how to apply this NN on…
0
votes
1 answer

Deeplearning4j DataSetIterator Reset not supported due to which model.fit() doesnot work

I am trying to run a classifier model on Cats and Dogs dataset. Every thing works fine till the code reaches Model.fit(dataSetIterator, eEpochs) step where as I found during Debug the dataSetIterator based on RecordReaderDataSetIterator hangs at…
Mani Khan
  • 11
  • 1
0
votes
0 answers

How to train DeepLearning4J model Using a Java Object... Cant find assistance anywhere on this question

I am working on a Phrase Input and Response System (Similar to SIRI) want to train a Model on how to detect a phrase category, i.e. command, misc., special, using a Phrase[] Java object from Apache OpenNLP. How do I do that? my only experience with…
X Builder
  • 211
  • 1
  • 3
  • 11
0
votes
1 answer

Deeplearning4j: How would I prepare this data for a RNN that uses LSTM?

In my code, I download data from a source to a CSV file, then I apply a transformation process to it, after which it is written to a final CSV file. At this point in time, one row of my data looks like…
user14717506
0
votes
0 answers

QLearning network in a custom environment is choosing the same action every time, despite the heavy negative reward

So I plugged QLearningDiscreteDense into a dots and boxes game I made. I created a custom MDP environment for it. The problem is that it chooses action 0 each time, the first time it works but then it's not an available action anymore so it's an…
0
votes
1 answer

Importing a gensim doc2vec model in deeplearning4j

I have trained a doc2vec model with gensim and like to import it into Deeplearning4j in order to deploy that model. For word2vec models, I know that this is possible by saving the model with model.wv.save_word2vec_format("word2vec.bin",…
Tobi
  • 2,001
  • 2
  • 27
  • 49
0
votes
1 answer

Deeplearning4j how to configure for best performance?

I just updated my server and I am running a web service using Deeplearning4j. I wanted to check out different configurations for performance to decide where to put future efforts. From what know. Native or CPU which is my current default CUDA or…
Tony Anecito
  • 347
  • 2
  • 13
0
votes
1 answer

Why exception in NativeImageLoader.asMatrix. Works fine in eclipse but not as a servlet

I am getting a nullpointerexception when calling NativeImageLoader.asMatrix(). I am trying to figure out what the trace is telling me. I am working with DeepLearning 1.0.0-beta7. Any hints? Thanks! 2020-11-03 14:49:17,273 ERROR [stderr]…
Tony Anecito
  • 347
  • 2
  • 13
0
votes
1 answer

Issue with registration of java twelvemonkeys registration for Deeplearning app

I am trying to register for a servlet the following and getting an exception. The code is: static { IIORegistry registry = IIORegistry.getDefaultInstance(); registry.registerServiceProvider(new…
Tony Anecito
  • 347
  • 2
  • 13
0
votes
2 answers

How to solve Deeplearning4j and Tensorflow error?

I am getting the error: Failed to define class org.tensorflow.framework.DataType I looked through the latest jars for Deeplearning4j and can not find it. Do I need to download from Maven the Tensorflow jars? I am running the new Deeplearning4j…
Tony Anecito
  • 347
  • 2
  • 13