Package eas.simulation.brain.neural.functions

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


        this.setStandardActFct(new ActivationFunctionSigmoid());
       
        for (int i = 0; i < NUM_SENSORS; i++) {
            this.setActivationFunction(
                    i,
                    new ActivationFunctionIdentity());
        }
       
        this.setActivationFunction(
                neuronsCount + LEFT_WHEEL_NUM_COUNTED_FROM_END,
                new ActivationFunctionLug());
View Full Code Here


   
    public OldNeuroTranslator(ParCollection params) {
        super(params);
        this.setStandardActFct(new ActivationFunctionLug());
        super.addNeuron(BIAS_NEURON_ID, new ActivationFunctionConstant(1), new TransitionFunctionWeightedSum(), Neuron.HIDDEN_NEURON);
        super.addNeuron(INPUT_NEURON_ID, new ActivationFunctionIdentity(), new TransitionFunctionWeightedSum(), Neuron.INPUT_NEURON);
        super.addNeuron(OUTPUT_NEURON_ID, new ActivationFunctionIdentity(), new TransitionFunctionWeightedSum(), Neuron.OUTPUT_NEURON);
        this.setAllowLinksFromOutputs(true);
        this.setAllowLinksToInputs(false);
        this.setAllowRecurrentLinks(true);
        this.addLink(INPUT_NEURON_ID, OUTPUT_NEURON_ID, 1);
    }
View Full Code Here

     * @return The id of the new neuron.
     */
    public int addNeuron(int neuronType) {
        if (neuronType == Neuron.INPUT_NEURON
                || neuronType == Neuron.INPUT_OUTPUT_NEURON) {
            return this.addNeuron(new ActivationFunctionIdentity(), neuronType);
        } else {
            return this.addNeuron(this.standardActFct, neuronType);
        }
    }
View Full Code Here

    }

    public int addNeuron(int neuronID, int neuronType) {
        if (neuronType == Neuron.INPUT_NEURON
                || neuronType == Neuron.INPUT_OUTPUT_NEURON) {
            return this.addNeuron(neuronID, new ActivationFunctionIdentity(),
                    this.standardTrnFct, neuronType);
        } else {
            return this.addNeuron(neuronID, this.standardActFct,
                    this.standardTrnFct, neuronType);
        }
View Full Code Here

TOP

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

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.