Package aima.core.learning.neural

Examples of aima.core.learning.neural.Layer.updateWeights()


    BackPropLearning.calculateWeightUpdates(layer1Sensitivity,
        inputVector1, 0.1);

    BackPropLearning.calculateBiasUpdates(layer1Sensitivity, 0.1);

    layer2.updateWeights();
    Matrix newWeightMatrix2 = layer2.getWeightMatrix();
    Assert.assertEquals(0.171, newWeightMatrix2.get(0, 0), 0.001);
    Assert.assertEquals(-0.0772, newWeightMatrix2.get(0, 1), 0.001);

    layer2.updateBiases();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.