dl4j

What could cause a state chart not to update while training a RL4J model inside Anylogic PLE?

瘦欲@ 提交于 2020-12-15 05:28:29
问题 I am trying to build a RL model with deep Q-Learning using RL4J in the Anylogic PLE as part of my thesis. Unfortunately, I am not overly familiar with Anylogic and DL4J and therefore might be missing some obvious steps. I only have access to the PLE and therefore I am trying to train the RL model inside Anylogic without the use of custom experiments. I changed the Vehicle battery example to be trained inside the Anylogic project's main agent. The main agent includes a state chart, which is my

What could cause a state chart not to update while training a RL4J model inside Anylogic PLE?

江枫思渺然 提交于 2020-12-15 05:28:07
问题 I am trying to build a RL model with deep Q-Learning using RL4J in the Anylogic PLE as part of my thesis. Unfortunately, I am not overly familiar with Anylogic and DL4J and therefore might be missing some obvious steps. I only have access to the PLE and therefore I am trying to train the RL model inside Anylogic without the use of custom experiments. I changed the Vehicle battery example to be trained inside the Anylogic project's main agent. The main agent includes a state chart, which is my

DL4J linear regression

笑着哭i 提交于 2020-12-04 03:55:54
问题 I am new in neural networks. I am trying to implement and train simple neural network with DL4j. My function: y = x * 2 + 300 My vision My result Parameters: public final int seed = 12345; public final int iterations = 1; public final int nEpochs = 1; public final int batchSize = 1000; public final double learningRate = 0.01; public final Random rng = new Random(seed); public final int numInputs = 2; public final int numOutputs = 1; public final double maxX = 100;//xmax = 100; ymax=500.

What is the precise specification of `broadcast` in ND4j / DL4j?

廉价感情. 提交于 2020-03-05 03:13:49
问题 What is the precise definition of INDArray.broadcast(long...) in ND4j? The description of both methods only says "Broadcasts this ndarray to be the specified shape", and does not explain the requirements for acceptable shapes to be broadcast. The following code (meant to broadcast an ndarray to a shape of an extra first dimension of length 3) does not work: INDArray array = Nd4j.create(new double[] {1.,2.,3.,4.}, new int[] {2,2}, 'c'); System.out.println("array: " + array); System.out.println

Libraries not accessible for “classloader-namespace”, when loading DL4J model using restoreMultiLayerNetwork()

↘锁芯ラ 提交于 2020-02-02 12:09:47
问题 I cannot find out how to get rid of / solve the below errors, that occur when loading a Neural Network model using the DL4J method restoreMultiLayerNetwork using Android API >= 24: The errors occur when the following line within the method restoreMultiLayerNetwork is called: params = Nd4j.read(ins2); with InputStream ins2 = getResources().openRawResource(getResources().getIdentifier("coefficients", "raw", getPackageName())); and "coefficients.bin" is the coefficients file, created by the

Serving Keras Models With Tensorflow Serving

做~自己de王妃 提交于 2019-12-18 11:13:49
问题 Right now we are successfully able to serve models using Tensorflow Serving. We have used following method to export the model and host it with Tensorflow Serving. ------------ For exporting ------------------ from tensorflow.contrib.session_bundle import exporter K.set_learning_phase(0) export_path = ... # where to save the exported graph export_version = ... # version number (integer) saver = tf.train.Saver(sharded=True) model_exporter = exporter.Exporter(saver) signature = exporter