# DL4J

**URL:** https://community.konduit.ai/c/dl4j/10.md?page=1

[Latest](https://community.konduit.ai/latest.md) · [Categories](https://community.konduit.ai/categories.md)

**Page:** 2

---

## [A very simple case of linear regression](https://community.konduit.ai/t/a-very-simple-case-of-linear-regression/3285)

<div class="topic-metadata">

**Author:** [@roman](https://community.konduit.ai/u/roman)\
**Replies:** 2\
**Last updated:** [November 22, 2024, 7:20am UTC](https://community.konduit.ai/t/a-very-simple-case-of-linear-regression/3285 "2024-11-22T07:20:05Z")

</div>

Hello! Could somebody please help me with a very simple case of linear regression and DL4j? I have just spent already several hours trying to reach what I did in python and tensorflow in a half of an hour. So, I try to …

---

## [Prediction Makes No Sense](https://community.konduit.ai/t/prediction-makes-no-sense/3275)

<div class="topic-metadata">

**Author:** [@AustinDart](https://community.konduit.ai/u/AustinDart)\
**Replies:** 1\
**Last updated:** [November 13, 2024, 12:37am UTC](https://community.konduit.ai/t/prediction-makes-no-sense/3275 "2024-11-13T00:37:56Z")

</div>

Hey, I’m new to the whole Machine Learning scene, and I’m playing around with DL4J. I’m trying to get it to predict the classification of an Iris based on the info given (a very common first program with machine learning…

---

## [Text Classification, need advice](https://community.konduit.ai/t/text-classification-need-advice/3271)

<div class="topic-metadata">

**Author:** [@Java\_Developer](https://community.konduit.ai/u/Java_Developer)\
**Replies:** 1\
**Last updated:** [November 1, 2024, 11:10pm UTC](https://community.konduit.ai/t/text-classification-need-advice/3271 "2024-11-01T23:10:42Z")

</div>

Hi all, I am trying to classify the text into 4 categories, for the sake of illustration, the categories (labels) are as follows: -booking -wheater -timer -bestSelling Now, for each category, I have 120 documents f…

---

## [A fatal error has been detected by the Java Runtime Environment](https://community.konduit.ai/t/a-fatal-error-has-been-detected-by-the-java-runtime-environment/3259)

<div class="topic-metadata">

**Author:** [@MRV](https://community.konduit.ai/u/MRV)\
**Replies:** 5\
**Last updated:** [October 29, 2024, 12:40pm UTC](https://community.konduit.ai/t/a-fatal-error-has-been-detected-by-the-java-runtime-environment/3259 "2024-10-29T12:40:45Z")

</div>

I am trying to load a .h5 model (tf.keras) in scala using deeplearning4j. I’m using SBT with following dependencies : libraryDependencies ++= Seq( "org.deeplearning4j" % "deeplearning4j-core" % "1.0.0-M2.1", "org.n…

---

## [Incorrect regression output data](https://community.konduit.ai/t/incorrect-regression-output-data/3252)

<div class="topic-metadata">

**Author:** [@st331man](https://community.konduit.ai/u/st331man)\
**Replies:** 4\
**Last updated:** [September 28, 2024, 5:41am UTC](https://community.konduit.ai/t/incorrect-regression-output-data/3252 "2024-09-28T05:41:17Z")

</div>

Hello! Please tell me what the problem might be. I have a recurrent network for regression based on a sequence of 100 time steps. An example of one step in the sequence: \[98.99920226267315, 98.74175067082459, 99.00645…

---

## [Adding trained neural net to android app](https://community.konduit.ai/t/adding-trained-neural-net-to-android-app/3254)

<div class="topic-metadata">

**Author:** [@CrossFawn1](https://community.konduit.ai/u/CrossFawn1)\
**Replies:** 5\
**Last updated:** [September 27, 2024, 1:51pm UTC](https://community.konduit.ai/t/adding-trained-neural-net-to-android-app/3254 "2024-09-27T13:51:18Z")

</div>

MultiLayerNetwork model = null; try { AssetManager assetManager = context.getAssets(); InputStream modelInputStream = assetManager.open(“small\_test.zip”); model = ModelSerializer.restoreMultiLayerNetwork(modelInputSt…

---

## [How to do denormalization?](https://community.konduit.ai/t/how-to-do-denormalization/3234)

<div class="topic-metadata">

**Author:** [@st331man](https://community.konduit.ai/u/st331man)\
**Replies:** 2\
**Last updated:** [September 18, 2024, 5:22pm UTC](https://community.konduit.ai/t/how-to-do-denormalization/3234 "2024-09-18T17:22:43Z")

</div>

Hello! Help me please! I have a recurrent neural network for regression over 100 time steps. One time step has the initial form: \[98.99920226267315, 98.74175067082459, 99.00645442019002, 98.69461164696499, 183762.0\] I…

---

## [Using ML models with Amazon EMR](https://community.konduit.ai/t/using-ml-models-with-amazon-emr/1311)

<div class="topic-metadata">

**Author:** [@kmcphee](https://community.konduit.ai/u/kmcphee)\
**Replies:** 20\
**Last updated:** [September 10, 2024, 11:43am UTC](https://community.konduit.ai/t/using-ml-models-with-amazon-emr/1311 "2024-09-10T11:43:34Z")

</div>

I’m trying to set up machine learning models in Amazon. When trying with the MNIST example model in scala, I got the following error: \[2021-04-10 21:36:23.144\]Container exited with a non-zero exit code 13. Error file: …

---

## [Flutter Android AppBundle issues with DL4J](https://community.konduit.ai/t/flutter-android-appbundle-issues-with-dl4j/3242)

<div class="topic-metadata">

**Author:** [@Gmane](https://community.konduit.ai/u/Gmane)\
**Replies:** 2\
**Last updated:** [September 10, 2024, 10:46am UTC](https://community.konduit.ai/t/flutter-android-appbundle-issues-with-dl4j/3242 "2024-09-10T10:46:35Z")

</div>

Good day, we are currently building a Flutter project for Android and we are using DL4J but when we are trying to create the app bundle we are getting an error as follows: \* What went wrong: Execution failed for task ‘:…

---

## [Set up deeplearning4j to use cuDNN for training convolutional neural net](https://community.konduit.ai/t/set-up-deeplearning4j-to-use-cudnn-for-training-convolutional-neural-net/3226)

<div class="topic-metadata">

**Author:** [@CrossFawn1](https://community.konduit.ai/u/CrossFawn1)\
**Replies:** 5\
**Last updated:** [September 9, 2024, 12:47pm UTC](https://community.konduit.ai/t/set-up-deeplearning4j-to-use-cudnn-for-training-convolutional-neural-net/3226 "2024-09-09T12:47:56Z")

</div>

I am having trouble getting Deeplearning4j to use cuDNN for training. I am using CUDA 11.2 and cuDNN 9.3. It seems that CUDA is successfully installed, but not cuDNN. If anyone can assist. I feel like I have used most on…

---

## [Caused by: java.lang.RuntimeException: org.nd4j.linalg.factory.Nd4jBackend$NoAvailableBackendException: Please ensure that you have an nd4j backend on your classpath. Please see: https://deeplearning4j.konduit.ai/nd4j/backend](https://community.konduit.ai/t/caused-by-java-lang-runtimeexception-org-nd4j-linalg-factory-nd4jbackend-noavailablebackendexception-please-ensure-that-you-have-an-nd4j-backend-on-your-classpath-please-see-https-deeplearning4j-konduit-ai-nd4j-backend/3237)

<div class="topic-metadata">

**Author:** [@mar](https://community.konduit.ai/u/mar)\
**Replies:** 0\
**Last updated:** [September 9, 2024, 10:33am UTC](https://community.konduit.ai/t/caused-by-java-lang-runtimeexception-org-nd4j-linalg-factory-nd4jbackend-noavailablebackendexception-please-ensure-that-you-have-an-nd4j-backend-on-your-classpath-please-see-https-deeplearning4j-konduit-ai-nd4j-backend/3237 "2024-09-09T10:33:25Z")

</div>

I am trying to load a .h5 model in scala on Intellij Idea. val modelPath = "/home/userr/IdeaProjects/untitled1/model.h5" val model: ComputationGraph = KerasModelImport.importKerasModelAndWeights(modelPath,false) I…

---

## [An exception is thrown when releasing CUDA resources in a multi-GPU environment](https://community.konduit.ai/t/an-exception-is-thrown-when-releasing-cuda-resources-in-a-multi-gpu-environment/3221)

<div class="topic-metadata">

**Author:** [@cqiaoYc](https://community.konduit.ai/u/cqiaoYc)\
**Replies:** 8\
**Last updated:** [September 9, 2024, 9:11am UTC](https://community.konduit.ai/t/an-exception-is-thrown-when-releasing-cuda-resources-in-a-multi-gpu-environment/3221 "2024-09-09T09:11:59Z")

</div>

My code section: // EarlyStopping EarlyStoppingConfiguration\<MultiLayerNetwork\> esConf = new EarlyStoppingConfiguration.Builder\<MultiLayerNetwork\>() .epochTerminationConditions(new MaxEpochsTermi…

---

## [A good method of preventing overfitting using MutiGPUWrapper](https://community.konduit.ai/t/a-good-method-of-preventing-overfitting-using-mutigpuwrapper/3208)

<div class="topic-metadata">

**Author:** [@cqiaoYc](https://community.konduit.ai/u/cqiaoYc)\
**Replies:** 8\
**Last updated:** [August 22, 2024, 7:16am UTC](https://community.konduit.ai/t/a-good-method-of-preventing-overfitting-using-mutigpuwrapper/3208 "2024-08-22T07:16:48Z")

</div>

I constructed a multi-layer network of 1D CNN + LSTM. During the training process, I found that if dropout was set, even with a very small value like 0.05, it would lead to no learning. I thought that perhaps the number …

---

## [Errors when Trying to import Keras Model into Java](https://community.konduit.ai/t/errors-when-trying-to-import-keras-model-into-java/3079)

<div class="topic-metadata">

**Author:** [@Max](https://community.konduit.ai/u/Max)\
**Replies:** 12\
**Last updated:** [August 13, 2024, 11:18am UTC](https://community.konduit.ai/t/errors-when-trying-to-import-keras-model-into-java/3079 "2024-08-13T11:18:32Z")

</div>

I’m relatively new to DL4J but have some experience with Java. I’m currently trying to import a model in .h5 format using importKerasSequentialModelAndWeights(). The issue is that it fails and I get the following error: …

---

## [What are the highest versions of CUDA and cuDNN currently supported by DL4J?](https://community.konduit.ai/t/what-are-the-highest-versions-of-cuda-and-cudnn-currently-supported-by-dl4j/3153)

<div class="topic-metadata">

**Author:** [@cqiaoYc](https://community.konduit.ai/u/cqiaoYc)\
**Replies:** 7\
**Last updated:** [August 12, 2024, 11:17am UTC](https://community.konduit.ai/t/what-are-the-highest-versions-of-cuda-and-cudnn-currently-supported-by-dl4j/3153 "2024-08-12T11:17:28Z")

</div>

Does it support CUDA versions above 11.6, specifically 12.x?

---

## [When will CUDA12. x be supported?](https://community.konduit.ai/t/when-will-cuda12-x-be-supported/3195)

<div class="topic-metadata">

**Author:** [@JoyfulDoge](https://community.konduit.ai/u/JoyfulDoge)\
**Replies:** 2\
**Last updated:** [July 27, 2024, 9:11am UTC](https://community.konduit.ai/t/when-will-cuda12-x-be-supported/3195 "2024-07-27T09:11:54Z")

</div>

My device is CUDA12.2,When I am using nd4j-CUDA-10.2-platform, the program throws an exception【 cudaGetSymbolAddress(…) failed; Error code: \[13\] 】 when executing vec. fit(), Is it due to version incompatibility?

---

## [How to customize a dataset iterator that supports multiple GPUs?](https://community.konduit.ai/t/how-to-customize-a-dataset-iterator-that-supports-multiple-gpus/3163)

<div class="topic-metadata">

**Author:** [@cqiaoYc](https://community.konduit.ai/u/cqiaoYc)\
**Replies:** 8\
**Last updated:** [July 18, 2024, 12:59pm UTC](https://community.konduit.ai/t/how-to-customize-a-dataset-iterator-that-supports-multiple-gpus/3163 "2024-07-18T12:59:50Z")

</div>

How to customize a dataset iterator that supports multiple GPUs?

---

## [Dependency Resolution Issue for DeepLearning4J on RISC-V Architecture](https://community.konduit.ai/t/dependency-resolution-issue-for-deeplearning4j-on-risc-v-architecture/3190)

<div class="topic-metadata">

**Author:** [@hansu](https://community.konduit.ai/u/hansu)\
**Replies:** 3\
**Last updated:** [July 17, 2024, 6:48am UTC](https://community.konduit.ai/t/dependency-resolution-issue-for-deeplearning4j-on-risc-v-architecture/3190 "2024-07-17T06:48:38Z")

</div>

Subject: Dependency Resolution Issue for DeepLearning4J on RISC-V Architecture Hello DeepLearning4J community, I’m attempting to build and test DeepLearning4J on a RISC-V architecture, but I’m encountering dependency r…

---

## [Error msg in LSTM RNN](https://community.konduit.ai/t/error-msg-in-lstm-rnn/3186)

<div class="topic-metadata">

**Author:** [@hrivnac](https://community.konduit.ai/u/hrivnac)\
**Replies:** 2\
**Last updated:** [July 10, 2024, 4:50pm UTC](https://community.konduit.ai/t/error-msg-in-lstm-rnn/3186 "2024-07-10T16:50:22Z")

</div>

When I try the example Conv1DUCISequenceClassification without modification, I get following error. Any idea what’s wrong ? Exception in thread “main” java.lang.IllegalStateException: Invalid mask array: per-example mas…

---

## [Training UI from a HPC to local macosx-arm64 machine](https://community.konduit.ai/t/training-ui-from-a-hpc-to-local-macosx-arm64-machine/3174)

<div class="topic-metadata">

**Author:** [@timmy1010697](https://community.konduit.ai/u/timmy1010697)\
**Replies:** 3\
**Last updated:** [June 26, 2024, 2:12am UTC](https://community.konduit.ai/t/training-ui-from-a-hpc-to-local-macosx-arm64-machine/3174 "2024-06-26T02:12:29Z")

</div>

I’m executing my code on a linux-based HPC, but I’ll need training result to pass back as a UI page to my local computer through http. I have the code on my HPC StatsStorageRouter remoteUIRouter = new RemoteUIStatsStora…

---

## [Impossible to import Zoo model](https://community.konduit.ai/t/impossible-to-import-zoo-model/2081)

<div class="topic-metadata">

**Author:** [@mbouazza-dev](https://community.konduit.ai/u/mbouazza-dev)\
**Replies:** 3\
**Last updated:** [June 26, 2024, 2:11am UTC](https://community.konduit.ai/t/impossible-to-import-zoo-model/2081 "2024-06-26T02:11:39Z")

</div>

I tried to load a zoo model with this code snippet: ZooModel zooModel = VGG16.builder().build(); ComputationGraph pretrainedNet = (ComputationGraph) zooModel.initPretrained(PretrainedType.IMAGENET); However I get the f…

---

## [The roadmap of 2024](https://community.konduit.ai/t/the-roadmap-of-2024/3181)

<div class="topic-metadata">

**Author:** [@yimlin](https://community.konduit.ai/u/yimlin)\
**Replies:** 1\
**Last updated:** [June 26, 2024, 2:10am UTC](https://community.konduit.ai/t/the-roadmap-of-2024/3181 "2024-06-26T02:10:28Z")

</div>

As the title, I’d like to know the roadmap for dl4j this year. can we get the V1.0.Releaase of dl4j?

---

## [scoreExamples and outputSingle output shape](https://community.konduit.ai/t/scoreexamples-and-outputsingle-output-shape/3176)

<div class="topic-metadata">

**Author:** [@timmy1010697](https://community.konduit.ai/u/timmy1010697)\
**Replies:** 0\
**Last updated:** [June 20, 2024, 6:03pm UTC](https://community.konduit.ai/t/scoreexamples-and-outputsingle-output-shape/3176 "2024-06-20T18:03:21Z")

</div>

I’m working on a ComputationGraph and a MultiLayerNetwork with the need to obtain its output and the loss for each entry of the batch. The below is the configuration for my ComputationGraph and MultiLayerNetwork. MultiL…

---

## [Tiny YOLO PredictedObjects NaN](https://community.konduit.ai/t/tiny-yolo-predictedobjects-nan/756)

<div class="topic-metadata">

**Author:** [@lquintero07](https://community.konduit.ai/u/lquintero07)\
**Replies:** 14\
**Last updated:** [June 18, 2024, 11:20am UTC](https://community.konduit.ai/t/tiny-yolo-predictedobjects-nan/756 "2024-06-18T11:20:14Z")

</div>

Hi guys, Im trying to run the code from this page: How to build a custom object detector using Yolo, It is an object detector for a rubix cube. Below the code, i did a little changes: package com.dl4j.yolo.sample;…

---

## [Kolmogorov-Arnold](https://community.konduit.ai/t/kolmogorov-arnold/3158)

<div class="topic-metadata">

**Author:** [@kgoderis](https://community.konduit.ai/u/kgoderis)\
**Replies:** 4\
**Last updated:** [June 12, 2024, 7:39am UTC](https://community.konduit.ai/t/kolmogorov-arnold/3158 "2024-06-12T07:39:16Z")

</div>

Hi all, Just wondering if someone has already made attempt at implementing a Kolmogorov-Arnold layer. See \[2404.19756v2\] KAN: Kolmogorov-Arnold Networks

---

## [Is there a development plan for the xLSTM model?](https://community.konduit.ai/t/is-there-a-development-plan-for-the-xlstm-model/3170)

<div class="topic-metadata">

**Author:** [@cqiaoYc](https://community.konduit.ai/u/cqiaoYc)\
**Replies:** 1\
**Last updated:** [June 11, 2024, 6:20pm UTC](https://community.konduit.ai/t/is-there-a-development-plan-for-the-xlstm-model/3170 "2024-06-11T18:20:22Z")

</div>

"It is said that the xLSTM model is significantly superior to the LSTM model.

---

## [How to configure BatchNormalization layers after Convolution1D and LSTM layers?](https://community.konduit.ai/t/how-to-configure-batchnormalization-layers-after-convolution1d-and-lstm-layers/3161)

<div class="topic-metadata">

**Author:** [@cqiaoYc](https://community.konduit.ai/u/cqiaoYc)\
**Replies:** 4\
**Last updated:** [June 11, 2024, 6:17am UTC](https://community.konduit.ai/t/how-to-configure-batchnormalization-layers-after-convolution1d-and-lstm-layers/3161 "2024-06-11T06:17:06Z")

</div>

The data format for BatchNormalization is 2D CNN（NCHW）, it is inconsistent with Convolution1D and LSTM layers（NCW).

---

## [1D CNN+LSTM Configuration Exception](https://community.konduit.ai/t/1d-cnn-lstm-configuration-exception/3157)

<div class="topic-metadata">

**Author:** [@cqiaoYc](https://community.konduit.ai/u/cqiaoYc)\
**Replies:** 3\
**Last updated:** [May 27, 2024, 7:50am UTC](https://community.konduit.ai/t/1d-cnn-lstm-configuration-exception/3157 "2024-05-27T07:50:08Z")

</div>

the net config: ‘’’ protected int cnnStrides = {1, 2};// Strides for each CNN layer protected int\[\] cnnNeurons = {72, 36}; //cnn各层的神经元数量 protected int\[\] rnnNeurons={64,32};//rnn各层的神经元数量 int\[\] cnnKernelSizes = {3, 3}; …

---

## [Error -1073740791 (0xC0000409) when using Convolution1D with CUDA](https://community.konduit.ai/t/error-1073740791-0xc0000409-when-using-convolution1d-with-cuda/3149)

<div class="topic-metadata">

**Author:** [@lolk5744](https://community.konduit.ai/u/lolk5744)\
**Replies:** 3\
**Last updated:** [May 20, 2024, 12:25pm UTC](https://community.konduit.ai/t/error-1073740791-0xc0000409-when-using-convolution1d-with-cuda/3149 "2024-05-20T12:25:15Z")

</div>

I am creating a network where the cnn-1d layer is at the input, the network performs several iterations of training and then the process shuts down with an error “Process finished with exit code -1073740791 (0xC0000409)”…

---

## [java.lang.RuntimeException: No CUDA devices were found in system](https://community.konduit.ai/t/java-lang-runtimeexception-no-cuda-devices-were-found-in-system/3142)

<div class="topic-metadata">

**Author:** [@dwai](https://community.konduit.ai/u/dwai)\
**Replies:** 7\
**Last updated:** [May 7, 2024, 11:46am UTC](https://community.konduit.ai/t/java-lang-runtimeexception-no-cuda-devices-were-found-in-system/3142 "2024-05-07T11:46:11Z")

</div>

Part of pom.xml \<properties\> \<project.build.sourceEncoding\>UTF-8\</project.build.sourceEncoding\> \<start-class\>com.fusionhiring.jdasist.fh\_jdassist.FhJdAssistApplication\</start-class\> \<docker.image.prefix\>${user.nam…

[Previous page](https://community.konduit.ai/c/dl4j/10.md)

[Next page](https://community.konduit.ai/c/dl4j/10.md?page=2)
