the getWeights method works, but if I setWeights I get:
Exception in thread "Thread-105" java.lang.NullPointerException
at org.joone.engine.ExtendableLearner.requestWeightUpdate(ExtendableLearner.java:62)
at org.joone.engine.FullSynapse.backward(FullSynapse.java:27)
at org.joone.engine.Synapse.revPut(Synapse.java:298)
at org.joone.engine.Layer.fireRevPut(Layer.java:310)
at org.joone.engine.Layer.revRun(Layer.java:1260)
at org.joone.net.NeuralNet.stepBackward(NeuralNet.java:1025)
at org.joone.net.NeuralNet.fastRun(NeuralNet.java:973)
at org.joone.net.NeuralNet.fastRun(NeuralNet.java:937)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi-
I am trying to manually add a conditional change in weights during training for example,
Matrix mx = new Matrix();
mx.setValue(dWeights1);
dWeights1-=.1;
dWeights1-=.1;
dWeights1-=.1;
dWeights1-=.1;
dWeights1-=.1;
mx.setValue(dWeights1);
synapse_IH.setWeights(mx);
where synapse_IH is the first layer FullSynapse object
Is there another way besides the Jansen weight decay class? Thanks.
the getWeights method works, but if I setWeights I get:
Exception in thread "Thread-105" java.lang.NullPointerException
at org.joone.engine.ExtendableLearner.requestWeightUpdate(ExtendableLearner.java:62)
at org.joone.engine.FullSynapse.backward(FullSynapse.java:27)
at org.joone.engine.Synapse.revPut(Synapse.java:298)
at org.joone.engine.Layer.fireRevPut(Layer.java:310)
at org.joone.engine.Layer.revRun(Layer.java:1260)
at org.joone.net.NeuralNet.stepBackward(NeuralNet.java:1025)
at org.joone.net.NeuralNet.fastRun(NeuralNet.java:973)
at org.joone.net.NeuralNet.fastRun(NeuralNet.java:937)