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

"How to fix 'Cannot resolve method "iterations and getFeatureMatrix "'?

" I'm new in neural networks and DL4j, and I want to train neural network with CSV and build linear regression. How can I fix these errors "Cannot resolve method'.iterations and getFeatureMatrix()'"? "Previously I'm tried to do that, but have…
Lemair
  • 51
  • 9
1
vote
1 answer

Does ND4J slicing make a copy of the original array?

ND4J INDArray slicing is achieved through one of the overloaded get() methods as answered in java - Get an arbitrary slice of a Nd4j array - Stack Overflow. As an INDArray takes a continuous block of native memory, does slicing using get() make a…
Shreck Ye
  • 1,591
  • 2
  • 16
  • 32
1
vote
0 answers

Any way to print input and output data for each row during training in DL4J?

The score for my model is dropping far too fast. For a huge dataset it's declining from > 5 to 0 well before the first epoch is complete. I suspect I may have misconfigured it somehow and perhaps each batch contains the same data. Is there any way…
Jonathan
  • 1,327
  • 3
  • 15
  • 24
1
vote
1 answer

How can I concatenate mixed type input into multi layer network with deeplearning4j?

I have a dataset where some features are numerical, some categorical, and some are strings (e.g. description). To give an example, lets say I have three features: | Number | Type | Comment …
Gena L
  • 420
  • 1
  • 5
  • 16
1
vote
2 answers

How to get the accuracy of classifier on test data in DeepLearning

I am trying to use DL4J for deep learning and have provided the training data with the labels. I am then trying to send a test data by assigning a dummy label. Without providing a dummy label, it gives runtime error. I dont understand why we need to…
Supriya
  • 91
  • 2
  • 13
1
vote
1 answer

Different prediction: Keras vs. Android + DL4J

I experience vastly different prediction results when comparing the output of a neural network trained on a GPU in Python(3.5.5) + Keras (version 2.0.8), against the output of the same neural network on Android (API 24) using DL4J (1.0.0-beta2). It…
Moritz
  • 1,710
  • 1
  • 8
  • 13
1
vote
1 answer

Reading recustructed vector from autoencoder in DL4J

My goal is to have an autoencoding network where I can train the identity function and then do forward passes yielding a reconstruction of the input. For this, I'm trying to use VariationalAutoencoder, e.g. something like: MultiLayerConfiguration…
Cedric Reichenbach
  • 8,970
  • 6
  • 54
  • 89
1
vote
1 answer

Execution failed for task ':app:packageDebug'. > Failed to obtain compression information for entry

I'm getting this error while building my app. I couldn't find any relevant posts about this error... Error:Execution failed for task ':app:packageDebug'. > Failed to obtain compression information for entry Top-level gradle: // Top-level build…
Hang
  • 319
  • 2
  • 15
1
vote
0 answers

Error during maven "clean install" with plug-in resolve

I try to to use clean install in Maven and get the error below. I have two questions: Is this an error to be solved with a fair amount of work or is it such an esoteric error, that any attempt to solve it would end up in a long-term project? Has…
Threx
  • 73
  • 1
  • 2
  • 9
1
vote
2 answers

Jar files for DL4J - using DL4J without building using Maven

I want to use DL4J [https://deeplearning4j.org/] and tried the instructions on the setup guide [https://deeplearning4j.org/gettingstarted]. I am facing problems while building using Maven (build failure). Do I need to really use Maven to build…
user1468768
  • 191
  • 2
  • 13
1
vote
2 answers

Error while loading model with RL4J

I'm using RL4J (the Reinforcement Learning framework integrated in DeepLearning4J) for making a car complete the lap in a track for a videogame. I save the the model after the training with this code: QLearningDiscreteConv dql =…
Andrea Iacono
  • 772
  • 7
  • 20
1
vote
0 answers

How to matrix multiply 2 layers in dl4j

I'm very new to dl4j and I'm struggling to preform basic operations within a graph. As an example how would I preform a multiplication of the output of 2 layers. For example in the code below what should the ??? be substituted with? Given that I…
Funzo
  • 1,190
  • 2
  • 14
  • 25
1
vote
0 answers

How to transpose the output of the previous layer in dl4j

I am very new to dl4j and I can't seem to find a layer for transposing the output of the previous layer. Is this something that is supported in the project or do I need to make a custom layer?
Funzo
  • 1,190
  • 2
  • 14
  • 25
1
vote
2 answers

interate DataSetIterator and add intto DataSet

I want interate a DataSetIterator and add it into a DataSet. Iterate is easy: while (iterator.hasNext()) { DataSet next = iterator.next(); dataSet.addRow(next, dataSet.numExamples()); // isn't work } if the DataSetIterator batch size is 1,…
Reinier Hernández
  • 428
  • 1
  • 6
  • 22
1
vote
1 answer

Can't find dependent libraries when trying to run deeplearning4j with CUDA

I'm attempting to run a neural network built using dl4j using the GPU. The code works fine when using the native platform dependency, but when I switch to using CUDA, execution fails with an exception: Caused by: java.lang.UnsatisfiedLinkError:…