Package eas.simulation.brain.neural.functions

Examples of eas.simulation.brain.neural.functions.ActivationFunction


    }
   
    public void propagate() {
        this.neuronVector.mult(this.weightMatrix);
        for (int i = 0; i < this.neuronVector.getRowCount(); i++) {
            ActivationFunction act = this.getActivationFunction(i);
            this.neuronVector.set(0, i, act.activationPhi(this.neuronVector.get(0, i)));
        }
    }
View Full Code Here


    public void propagateReverse() {
        if (this.inverseWeightMatrix == null) {
            this.createInverseWeightMatrix();
        }
        for (int i = 0; i < this.neuronVector.getRowCount(); i++) {
            ActivationFunction act = this.getActivationFunction(i);
           
            try {
                this.neuronVector.set(0, i, act.inverseActivationPhi(this.neuronVector.get(0, i)));
            } catch (InversionNotSupportedException e) {}
        }
        this.neuronVector.mult(this.inverseWeightMatrix);
    }
View Full Code Here

    private void createInverseWeightMatrix() {
        this.inverseWeightMatrix = this.weightMatrix.inverse();
    }
   
    public ActivationFunction getActivationFunction(int neuronID) {
        ActivationFunction a = this.activationFunctions.get(neuronID);
        if (a == null) {
            return this.standardActFct;
        } else {
            return a;
        }
View Full Code Here

TOP

Related Classes of eas.simulation.brain.neural.functions.ActivationFunction

Copyright © 2018 www.massapicom. 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.