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
0 answers

In dl4j word2 vec vecs.similarity method throws null pointer exception

File gModel = new File("D:/FluidAI/WordVec/pathToSaveModel.txt"); Word2Vec vecs = WordVectorSerializer.readWord2VecModel(gModel);//("D:/FluidAI/WordVec/pathToSaveModel.txt"); vecs.setTokenizerFactory(t); vecs.setSentenceIter(iter); …
friend
  • 15
  • 1
  • 11
0
votes
1 answer

Why DL4J NLP example not getting the jars using maven?

I am trying to run the program of DL4J examples from the following link: https://github.com/deeplearning4j/dl4j-examples/blob/master/dl4j-examples/src/main/java/org/deeplearning4j/examples/recurrent/word2vecsentiment/Word2VecSentimentRNN.java But…
Jaffer Wilson
  • 7,029
  • 10
  • 62
  • 139
0
votes
1 answer

Can't cast listener to collection, DL4J

I am first time working with dl4j, so go easy on me. I wrote the following simple program import org.datavec.api.records.reader.RecordReader; import org.datavec.api.records.reader.impl.csv.CSVRecordReader; import…
Oria Gruber
  • 1,513
  • 2
  • 22
  • 44
0
votes
1 answer

How to classify Cifar image with Alexnet on Deeplearning4j

I am a beginner to Deeplearning4j, and going to to a testing on Cifar-10 images classify. I just copy the Alexnet from DL4j example(AnimalsClassification.java) like: MultiLayerConfiguration conf = new NeuralNetConfiguration.Builder() …
Jerome tan
  • 155
  • 1
  • 1
  • 10
0
votes
1 answer

deeplearning4j generate response to input

I have recently been trying to learn DL4J but have run into some issues. They have an example of a neural network generating Shakespeare-like text based off and input character but I can't seem to find anything that wold indicate a possible way of…
Drok_
  • 149
  • 1
  • 7
0
votes
1 answer

Spark Machine learning design model from web application

I have developed a web application where user can choose machine learning framework/ number of iterations/ some other tuning parameter. How can I invoke Spark job from user interface by passing all the inputs and display response to user. Depending…
lalithark
  • 107
  • 9
0
votes
2 answers

dl4j - Unable to get number of of rows for a non 2d matrix

I am current using nd4j and dl4j to implement some deep learning algorithm. However, I can not get datavec + dl4j working in the first place. Here is my image converter: public class ImageConverter { private static Logger log =…
Steven Luo
  • 2,350
  • 3
  • 18
  • 35
0
votes
1 answer

How can I use deeplearning4j Word2vec with Spark?

When using spark-submit, I need to send the dependencies with --packages. Which package should I use? I tried making an uber jar which contain the dependencies, but I get the following error: java.lang.IllegalArgumentException: Please specify an…
blpasd
  • 409
  • 7
  • 18
0
votes
1 answer

Converting org.bytedeco.javacpp.Mat to Java int/float array

My image is represented as org.bytedeco.javacpp.Mat. And I simply want to convert it to Java array of float/int. Reason behind conversion is that I want to use the Java array in other library (Nd4j) for image permute purposes. I have tried below…
-1
votes
1 answer

CNN: Unstable of model score vs iteration

I got my model score vs iteration graph is unstable. How can I improve it? This is what I get Here is my code Code 1 Code 2 Code 3 Code 4 Code 5
-1
votes
1 answer

Caused by: java.lang.UnsatisfiedLinkError: no jnind4jcuda in java.library.path

I am working with DeepLearning4j library. I am running everything on HPC and I generate a jar file to submit with spark-submit. I am using the version M1.1. Everything was fine with the CPU but when I switched to GPU, I got this error: Exception in…
-1
votes
1 answer

Autoencoder for dimesionality reduction in DL4J

I'm trying to write an autoencoder for dimensionality reduction in DL4J, but all the autoencoder examples I can find for DL4J are for outlier…
-1
votes
1 answer

java.lang.RuntimeException: No CUDA devices were found in system

I am working with DeepLearning4j library. I am running everything on HPC and I generate a jar file to submit with spark-submit. I am using the version M1.1. Everything was fine with the CPU but when I switched to GPU, I got this error: Warning:…
-1
votes
1 answer

Creating a DL4J java application

How can I use DL4J in my own Java project using maven? For this project I am going to need to shade dependencies inside of my new projects jar however doing this causes my jar file to be almost 500MB when its normally like 4MB it also causes my jar…
user17364069
-1
votes
2 answers

Different predictions for the same data

I use Deeplearning4j to classify equipment names. I marked ~ 50,000 items with 495 classes, and I use this data to train the neural network. That is, as input, I provide a set of vectors (50,000) consisting of 0 and 1, and the expected class for…
apollox
  • 101
  • 7
1 2 3
13
14