Menu

Can I manually update weights during training

Help
Chris Orr
2010-07-08
2013-04-16
  • Chris Orr

    Chris Orr - 2010-07-08

    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.

     
  • Chris Orr

    Chris Orr - 2010-07-08

    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)

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.