Questions tagged [dl4j]

Deeplearning4j is the first commercial-grade, open-source, distributed deep-learning library written for Java and Scala

About

Deeplearning4j is the first 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.

Links

208 questions
1
vote
0 answers

Generic function for dl4j in Kotlin

I am messing around with dl4j in Kotlin and trying to build a generic function. Basically I want to take functions like these: fun NeuralNetConfiguration.ListBuilder.dense(init: DenseLayer.Builder.() -> Unit) { …
tilman151
  • 563
  • 1
  • 10
  • 20
1
vote
1 answer

ND4J DL4J Getting data into fit method

I have an INDArray of data which is the return value of x as follows: private static INDArray createDataSet(String path)throws Exception { List lines = IOUtils.readLines(new FileInputStream(path), StandardCharsets.UTF_8); …
cagney
  • 492
  • 3
  • 11
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
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
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
1 answer

Exception when running DL4J example

I have cloned DL4J examples and just trying to run one of them. One that I am trying is LogDataExample.java. Project has been build successfully and everyting seams fine expect when starting it following exception is thrown Exception in thread…
mirzak
  • 1,043
  • 4
  • 15
  • 30
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
1
vote
6 answers

Caused by: java.net.UnknownHostException: blob.deeplearning4j.org problem with deeplearning4j

I would like to run the dl4jexamples/modelimport/ImportDeepMoji.java but it throws an exception Caused by: java.net.UnknownHostException: blob.deeplearning4j.org how can i address this issue? this is the complete error log Downloading model to…
explorer
  • 15
  • 4
1
vote
1 answer

Can't read even though there is dylib symbol

I get this error when running my java program. (on intellij ide.) dyld: lazy symbol binding failed: Symbol not found: ___emutls_get_address Referenced from:…
1
vote
0 answers

DL4J my LSTM network cannot predict values

I used codes from "https://github.com/IsaacChanghau/StockPrediction" and I modified some method calls because of version diffrences. and Isaac's code result shows "https://github.com/IsaacChanghau/StockPrediction/blob/master/predict.png" but my…
Brian_Jeon
  • 11
  • 2
1
vote
0 answers

java.lang.ClassNotFoundException and java.lang.NoClassDefFoundError - Android & Deeplearning4j dl4j

I started to work with deeplearning4j in Android, but I have a problem that i t had no solution in recent days. When I define the neural network, I don't find any problem related to lack of classes or anything similar. DenseLayer inputLayer…
1
vote
1 answer

dl4j - what's the label mechanism in paragraph2vec?

I just read the paper Distributed Representations of Sentences and Documents. In the sentiment analysis experiment section, it says, "After learning the vector representations for training sentences and their subphrases, we feed them to a logistic…
kevin zhao
  • 11
  • 1
1 2
3
13 14