Package eas.simulation.brain.neural.functions

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


    }
   
    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);
View Full Code Here


        this.pars = params;
        neuralNet = new GeneralNeuralNetwork(this.pars);
        neuralNet.setStandardActFct(new ActivationFunctionSigmoid(1));

        // Bias neuron.
        this.neuralNet.addNeuron(new ActivationFunctionConstant(1), Neuron.INPUT_NEURON);
       
        for (GenericSensor<Object, ?, AbstractAgent<?>> sens : this.getMyBody().getSensors()) {
            try {
                GenericRealValuedSensor<AbstractEnvironment<?>, AbstractAgent<?>> sensor
                    = (GenericRealValuedSensor) sens;
View Full Code Here

        String s = "Neuron " + this.getId() + ": " + inOut;
        return s;
    }
   
    public static Neuron getDummyNeuron() {
        return new Neuron(0, new ActivationFunctionConstant(0), Neuron.HIDDEN_NEURON, null) {
            /**
             *
             */
            private static final long serialVersionUID = 1256051857833946920L;

View Full Code Here

TOP

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

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.