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

Errors with deeplearning4j and Maven

Here is the tutorial I'm following. The pom.xml file is the default one that comes with the dl4j examples folder so there shouldn't be issues there but it still has errors. Here's the code: package org.deeplearning4j.self; import…
J B
  • 1
  • 3
0
votes
2 answers
0
votes
0 answers

"Cannot resolve symbol" on all of the MultiLayerNetwork's methods

Here's a link to the tutorial I'm following. I'm using IntelliJ, Maven is installed correctly, initally I was using JDK 13.0.2 but switched to JDK 1.8.0_261 to try and fix this error. Here's the code so far: package…
0
votes
0 answers

Android studio not cleaning dependencies after Gradle clean

I am trying to use deeplearning4j on Android device, switching between debugging on emulator and physical device. For this I have multiple dependencies that are of a huge size and are all necessary. Thankfully, there is an implementation for each…
Curcuma_
  • 851
  • 2
  • 12
  • 37
0
votes
1 answer

DL4J: binarizing middle layer of autoencoder for semantic hashing

I'm trying to implement semantic hashing for the MNISTAutoencoder example, using DL4J. How would I binarize the middle layer activations? In the ideal case, I'm looking for some change to my network setup which gives (almost) binary activations for…
mstrap
  • 16,808
  • 10
  • 56
  • 86
0
votes
1 answer

How would I parse .npy files from the Google Quick, Draw! dataset with deeplearning4j for my convolution network?

I’m just getting started with dl4j. After going through some of the examples I thought I would have a go at implementing a simple convolutional network to classify a subset of images from the Google Quick, Draw! Dataset. The DataIterators I have…
J Adamson
  • 417
  • 1
  • 5
  • 13
0
votes
1 answer

deeplearning4j Expected model class name Model (found Functional)

deeplearning4j returning "Expected model class name Model (found Functional)." when trying to load a keras model. same happens when try to load it as sequential. python : from tensorflow.keras.applications.resnet50 import ResNet50 from…
Aimen Kaa
  • 59
  • 8
0
votes
0 answers

Following the problems from the book Implement 10 real-world deep learning applications using Deeplearning4j

I'm following the problems from the book Implement 10 real-world deep learning applications using Deeplearning4j by Rezaul Karim. I have the ML background but I'm learning the DL4J library. On the second problem, the cancer issue, there is a piece…
ABFovox
  • 39
  • 4
0
votes
1 answer

How get accuracy value with deeplearning4j from 1 dataset

I have created a keras model in python imported into java model = KerasModelImport. importKerasSequentialModelAndWeights(aiModelPath); then i passed an array of values to the model and asked for a prediction or better said for…
0
votes
1 answer

Setup linear regression with a factorMatrix - DL4j

I have a factorMatrix of type INDArray which is xIn It contains of 5 columns [A, B, C, D, E] and another INDArray with 1 column [y] which is yIn For the ones who are familiar with MatLab I could use now: modelTrain = fitlm([XInSample yInSample] ,…
Anna Klein
  • 1,906
  • 4
  • 27
  • 56
0
votes
1 answer

How to create ND4J NDArrays on GPU in DeepLearning4J?

Is there a way to create NDArrays in DL4J so that the operations are done on GPU ? For example in pytorch, cuda0 = torch.device('cuda:0') x = torch.tensor([1., 2.], device=cuda0) I cannot find a way to specify a back-end (cpu or gpu) if my system…
0
votes
1 answer

deeplearning4j embedding more than one field

How can I embed more than one field in deeplearning4j? For example, if I want to embed user_id and ad_id as two fields: val conf = new NeuralNetConfiguration.Builder() .seed(12345) …
0
votes
1 answer

Where can I find the installed header files for DL4J - INDArray related operations?

I have installed DL4J using maven. I need to see the installed .so and CPP header files that are used for INDArray calls? If I am not wrong the EXPORT functions are in NativeOps.h file. Where can I find them? I think they are located inside…
0
votes
1 answer

Simple Reinforcement Learning example

i try to create a simplified rl4j example based on the existing Gym and Malmo examples. Given is a sine wave and the AI should say if we are on top of the wave, on bottom or somewhere else(noop). The SineRider is the "Game", State is the value of…
0
votes
1 answer

What data structure is used for predictions in the regression model of the deeplearning4j library?

In Python, I configured, trained, and wrote to a file a neural network with the following architecture: model_fully_connected = Sequential() model_fully_connected.add(keras.layers.Dense(17, activation='tanh', input_shape=(x_train.shape[1],),…