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

deeplearning4j word2vec output wordvectors

When I run the sample program Word2VecRawTextExample.java url: [ https://raw.githubusercontent.com/deeplearning4j/dl4j-0.4-examples/master/src/main/java/org/deeplearning4j/examples/nlp/word2vec/Word2VecRawTextExample.java ] to generate word2Vec…
Niall
  • 51
  • 4
3
votes
0 answers

How can I define multiple labels in trainig set to use at Deeplearning4j?

I am new no ML and I hava strated using Deeplearning4j library. And I literaly got lost in the source code. How can i read training set with multiple labels, but not just 1? For example I wan't to teach lstm to classify texts in 4 classes. How can i…
3
votes
2 answers

Regress the max function over a neural network

I'm training myself over learning neural network. There is a function that I can't make my neural network learn: f(x) = max(x_1, x_2). It seems like a very simple function with 2 inputs and 1 input but yet a 3 layer neural network trained over a…
Atol
  • 569
  • 4
  • 12
3
votes
1 answer

DeepLearning4j examples maven project unable to be processed by Intellij

As shown in the screenshot there is a dependency of the dl4j-0.4-examples project that is unable to be loaded by intellij. Unable to get dependency information: Unable to read the metadata file for artifact 'com.github.jai-imageio-core.jar':…
WestCoastProjects
  • 58,982
  • 91
  • 316
  • 560
3
votes
1 answer

deeplearning4j - use Word2Vec for named entity recognition

I am trying to replicate the paper NLP (almost) from scratch using deeplearning4j. I have done the following steps: load the SENNA word vectors write a iterator for the CoNLL'03 dataset: for each word, I form a word feature vector by concatenating…
Dung Thai
  • 128
  • 9
2
votes
1 answer

How to use LayerNormalization layer in a Keras sequential Model?

I am just getting into Keras and Tensor flow. Im having a lot of problems adding an input normalization layer in a sequential model. Now my model is ; model = tf.keras.models.Sequential() model.add(keras.layers.Dense(256, input_shape=(13, ),…
2
votes
0 answers

How to use LSTM with a 2d array with DeepLearning4j

i am trying to learn how to use LSTM with deeplearning4j lib. I created a dummy scenario where i want to get an output (3 classes) based on data that i collected. I got the data from here (http://www.osservatoriodioropa.it/meteoropa/NOAAMO.TXT) if…
user3804873
  • 155
  • 2
  • 11
2
votes
1 answer

How to split a DataSetIterator into testing and training iterator?

I am using Deeplearning4j and datavec, and I have a DataSetIterator object that represents all of my data, which is a time series. How can I split this into training and testing iterators? I check and the DataSetIterator Class's methods are…
user14717506
2
votes
1 answer

LSTM and Dense layers preprocessing

I am trying to build NN with LSTM and Dense layers. Me net is: MultiLayerConfiguration conf = new NeuralNetConfiguration.Builder() .seed(123) .weightInit(WeightInit.XAVIER) .updater(new Adam(0.1)) …
2
votes
2 answers

How to obtain data of filters of the convolution layers of the CNN network in DL4J to draw the activation map?

How to get filters data from the layer objects for the configuration and model like this? ComputationGraphConfiguration config = new NeuralNetConfiguration.Builder() .seed(seed) …
Eljah
  • 4,188
  • 4
  • 41
  • 85
2
votes
1 answer

Deeplearning4j - java - You can register a SameDiff Lambda layer using KerasLayer.registerLambdaLayer(lambdaLayerName, sameDiffLambdaLayer);

I am trying to load my model.h5 in my java code using deeplearning4j. I am following this tutorial https://deeplearning4j.konduit.ai/keras-import/model-functional Java code public static void jk() throws IOException,…
Jeya Kumar
  • 1,002
  • 1
  • 13
  • 36
2
votes
0 answers

How to prepare dataset for a multi-task-learning network with a yolo output layer?

I have a convolutional neural network with a Yolo output-layer and multiple regression output-layers(I just mapped extra output layers to a typical Yolo CNN) using a computation graph. The problem I have is with the dataset, for the Yolo output I…
linker
  • 821
  • 1
  • 8
  • 20
2
votes
0 answers

Hashing trick, range [0; 1]

I have understood the principle of hashing trick and use it when normalizing my data (word content). The results I get from my hash process are in the range of [0;N]. As we know that model training is more efficient on data in the [0;1] range, I…
mmcookie
  • 39
  • 2
2
votes
1 answer

How to load BufferedImage as input to a classifier in DeepLearning4j?

I'm trying to get a trained Convolutional Neural Net (CNN) to classify a new image (which comes as a BufferedImage object). The CNN model was trained using the example provided in DeepLearning4j…
Reza Lesmana
  • 121
  • 1
  • 3
2
votes
0 answers

How can I create a deeplearning4j Lambda Layer taking the mean over one dimension for a keras model inported from python?

I try to load a Keras Model trained in Python into Java using deeplearning4j. The Model contains a Lambda Layer, that takes the average in one dimension. I found out, that I have to create the Lambda Layer as a Class, so that deeplearning4j knows…
Severin
  • 53
  • 5