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

Rounding INDArray upto certain precision

Looking for a similar type of function np.round_(in_array, decimals = 2) which can operate on INDArray in java. Basically want to round off all the digits in INDArray up to some precision. Ex : Given an array in_array = [.5538, 1.33354,…
Programmer
  • 165
  • 1
  • 1
  • 7
0
votes
2 answers

Deeplearning4J nd4j-native.properties cannot be opened because it does not exist

When I used DL4J(version 1.0.0-M1.1) on android studio, it says that "nd4j-native.properties cannot be opened because it does not exist".However if I used on IDEA or the version was 1.0.0-beta7, the error did not occurred.
tb06077
  • 3
  • 1
0
votes
1 answer

DL4J-Image become too bright

Currently, I've been asked to write CNN code using DL4J using YOLOv2 architecture. But the problem is after the model has complete, I do a simple GUI for validation testing then the image shown is too bright and sometimes the image can be displayed.…
0
votes
1 answer

What is the output of the dl4j lstm neural network?

I am studying a text generation example https://github.com/eclipse/deeplearning4j-examples/blob/master/dl4j-examples/src/main/java/org/deeplearning4j/examples/advanced/modelling/charmodelling/generatetext/GenerateTxtCharCompGraphModel.java. The…
0
votes
1 answer

Deeplearning4j - how to iterate multiple DataSets for large data?

I'm studying Deeplearning4j (ver. 1.0.0-M1.1) for building neural networks. I use IrisClassifier from Deeplearning4j as an example, it works fine: //First: get the dataset using the record reader. CSVRecordReader handles loading/parsing int…
apollox
  • 101
  • 7
0
votes
1 answer

Deeplearning4j - how to use saved model?

I'm studing Deeplearning4j (ver. 1.0.0-M1.1) for building neural networks. I use IrisClassifier from Deeplearning4j as an example. //First: get the dataset using the record reader. CSVRecordReader handles loading/parsing int numLinesToSkip = 0; char…
apollox
  • 101
  • 7
0
votes
1 answer

DeepLearning4j NN for prediction function doesn't converge

I'm trying to do a simple prediction in DL4j (going to use it later for a large dataset with n features) but no matter what I do my network just doesn't want to learn and behaves very weird. Of course I studied all the tutorials and did the same…
BigEl
  • 13
  • 1
  • 4
0
votes
0 answers

In DL4J, is there a way to ignore columns for training/scoring without removing them so they can be accessed later?

In DL4J, is there a way to access the columns of preprocessed data after at the scoring step? I have a case where I have a csv of data that includes fields that are not used by the neural net for prediction, but they are important to include in my…
0
votes
0 answers

Dl4J compilation errors on beta-7

I have some compiler errors when trying to build a MultiLayerConfiguration in Dl4J (java). They are just fine, according to the docs and examples GitHub repository. I am using NetBeans IDE, with Dl4J 1.0.0 beta-7. My JDK is set to 11. When I have…
Developer
  • 98
  • 1
  • 9
0
votes
0 answers

JVM error when trying to train model in memory map. DL4J

I have hit a brick wall, in using DL4J. When I try to train my model inside a memory map, it only results in a JVM error. I am using DL4J 1.0.0 beta-6 (beta 7 was fussing over some source code issues that I couldn't resolve) I will post the rest of…
Developer
  • 98
  • 1
  • 9
0
votes
1 answer

BUILD FAILURE while installing DL4J

I'm trying tu buld projetct with DL4J . I did the following steps from ths website : https://deeplearning4j.konduit.ai/getting-started/quickstart When I do this command mvn clean install I get the following error :
user14053977
  • 151
  • 2
  • 13
0
votes
0 answers

Getting error when importing a Keras model into DL4J - "Batch norm layer expected input of type CNN, CNN Flat or FF..."

I'm trying to import a Keras model trained in Python with DL4J and I'm getting the following error: 11:39:22.588 [main] Exception in thread "main" java.lang.IllegalStateException: Invalid input type: Batch norm layer expected input of type CNN, CNN…
0
votes
1 answer

DeepLearning4J Doc2Vec input structure

As I see less than 500 questions related on deeplearning4J here and most years old, first a different question: is DL4J dead? Do I really have to deal with horrible, horrible Python just to build my AI? I don't want to! Now real question, I feel a…
user13548229
0
votes
0 answers

InvalidModuleDescriptorException while importing dl4j into my project

I’m trying to use dl4j in my project which runs on openjdk-15.0.2.7 and I use gradle to manage my dependencies. The project builds with no errors but when the code is executed it crashes immediately with the…
0
votes
2 answers

Benchmarking my neural network with JMH, but how do I mix my maven dependencies?

I followed this guide (http://tutorials.jenkov.com/java-performance/jmh.html) and have opened a new project with that class MyBenchmark which looks like this: package com.jenkov; import org.openjdk.jmh.annotations.Benchmark; import…