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

Exception when loading a Keras Model in Java with deeplearning4j

I am currently trying to implement this guide: https://towardsdatascience.com/deploying-keras-deep-learning-models-with-java-62d80464f34a I already trained a model with tf and Keras and exported it to a file. I want to use the Model in java and…
M.Winkens
  • 140
  • 2
  • 11
2
votes
0 answers

Map original data from the dataset to new data using Datavec library and store it in Spark RDDs

I have a dataset that contains a latitude and longitude written like 20.55E and 30.11N. I want to replace these direction strings with an appropriate - where required. So basically, I'll map based on the condition and change the value. Currently, I…
Shankha057
  • 1,296
  • 1
  • 20
  • 38
2
votes
1 answer

Lag a value with Datavec transform

I'm trying to figure out how to get a lagged value of a field as part of a datavec transform step. Here is a little example built off the dl4j examples: import org.datavec.api.records.reader.RecordReader; import…
andrewm4894
  • 1,451
  • 4
  • 17
  • 37
2
votes
1 answer

Error on loading keras model with deeplearning4j

I have been struggling with loading my keras neural network model for my Android application with deeplearning4j for a while now. I have searched for solutions (as much as there are), but every solution brings up new errors and I just could not get…
2
votes
1 answer

How to create training and test DataSetIterators in deeplearning4j?

I am building a recurrent neural network with deeplearning4j and I need to create the training and test data sets. All the examples provided in the documentation and the example code, use a CSVSequenceRecordReader to read CSV files. Then a…
Ben
  • 6,321
  • 9
  • 40
  • 76
2
votes
1 answer

Deeplearning4j org.nd4j.linalg.factory.Nd4jBackend$NoAvailableBackendException

I cannot run a simple program that I wrote to start understanding Deeplearning4j. I tried the code from this link: Deep Learning In Java Using Deeplearning4J unfortunately it didn't work for me. In fact I have this error: SLF4J: Failed to load…
AM13
  • 661
  • 1
  • 8
  • 18
2
votes
2 answers

Deeplearning4j (DL4J) low precision, recall and F1

I am going to use DL4J for finding a good model against a conditional matrix. I have prepared the CSV-like dataset (sample as at below) and after fine tuned the hyperparamaters and trained the model for many times, I still cannot get an reasonable…
CHI WAI HO
  • 21
  • 2
2
votes
1 answer

deeplearning4j : update a saved model

I trained a model using deeplearning4j on a first part of my data and saved it. ModelSerializer.writeModel(model, locationToSave, true); Now, I want to train this saved model on the next part of data. I loaded the model: MultiLayerNetwork model =…
Rayan
  • 31
  • 2
2
votes
0 answers

Obtaining Keras Model Configuration

Importing the Keras MobileNet V2 HDF5 file (obtained here) with DL4J in Java throws the following error: java.lang.RuntimeException: org.deeplearning4j.nn.modelimport.keras.exceptions.InvalidKerasConfigurationException: Model configuration attribute…
Henry
  • 727
  • 1
  • 6
  • 25
2
votes
3 answers

Finding Un-terminated quoted field at end of CSV line

Is there anyway we could find line number of "Un-terminated quoted field at end of CSV line"? I'm trying to read CSV file in java, but getting error most probably because - there is a quote is opened but isn't closed. I'm using CSVRecordReader of…
2
votes
1 answer

DeepLearning4j - neural network configuration

During last few days I have started working with deeplearning4j library and I have encountered a kind of a problem. My testing and input data consist of 25 binary values. Training set contains 40 rows. Network has 4 output values. My goal is to…
Thomas Clancy
  • 61
  • 1
  • 6
2
votes
1 answer

Extracting features from deeplearning4j layer

I am trying to extract the layer activations to save them locally as features. I'm still new to CNNs so I'd like to show what I did and I'd like to know if what I'm doing is correct: public static void main(String[] args) throws IOException { …
2
votes
2 answers

Can I run DeepLearning4J on an AMD GPU?

I think DeepLearning4j uses CUDA, which is a NVIDIA thing. I bought this computer for things like neural networks but now I'm disappointed that I have an AMD GPU. Is it somehow possible that I can run DeepLearning4J on AMD?
dan dan
  • 475
  • 1
  • 3
  • 12
2
votes
0 answers

How to add independent input variables in RNN model

I have customer purchase history and some independent variables associated with each product that customer bought. I am trying to predict the next best predict for customers. T Customer Input1 Input2 ...... Input10 PrdouctBought 1 cust1 2 …
2
votes
1 answer

DeepLearning4j k-means very slow

I'm trying to use DL4J's K-Means implementation. I set it up as follows: int CLUSTERS = 5; int MAX_ITERATIONS = 300; String DISTANCE_METRIC = "cosinesimilarity"; KMeansClustering KMEANS = KMeansClustering.setup(CLUSTERS, MAX_ITERATIONS,…
KidCrippler
  • 1,633
  • 2
  • 19
  • 34