Package eas.simulation.brain.neural.functions

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


        this.pars = params;
        this.neuronVector = new Matrix(1, neuronsCount);
        this.weightMatrix = new Matrix(neuronsCount, neuronsCount);
        this.activationFunctions = new HashMap<>();
        this.inverseWeightMatrix = null;
        this.standardActFct = new ActivationFunctionSigmoid(1.0);
    }
View Full Code Here


    public static final int LEFT_WHEEL_NUM_COUNTED_FROM_END = -1;
    public static final int RIGHT_WHEEL_NUM_COUNTED_FROM_END = -2;
   
    public NeuroController(ParCollection params, int neuronsCount) {
        super(params, neuronsCount);
        this.setStandardActFct(new ActivationFunctionSigmoid());
       
        for (int i = 0; i < NUM_SENSORS; i++) {
            this.setActivationFunction(
                    i,
                    new ActivationFunctionIdentity());
View Full Code Here

        for (int i = 0; i < other.getNeuronCount(); i++) {
            for (int j = 0; j < other.getNeuronCount(); j++) {
                this.addLink(i, j, other.getWeight(i, j).doubleValue());
            }
        }
        this.standardActFct = new ActivationFunctionSigmoid(1.0);
    }
View Full Code Here

        for (int i = 0; i < other.getNeuronCount(); i++) {
            for (int j = 0; j < other.getNeuronCount(); j++) {
                this.addLink(i, j, other.getWeight(i, j));
            }
        }
        this.standardActFct = new ActivationFunctionSigmoid(1.0);
    }
View Full Code Here

   
    public GeneralNeuralNetwork(final ParCollection params) {
        this.neurons = new HashMap<Integer, Neuron>();
        this.pars = params;
        this.pfeilMaster = new ArrowMaster(this.pars);
        this.standardActFct = new ActivationFunctionSigmoid(1.0);
    }
View Full Code Here

    @SuppressWarnings({ "unchecked", "rawtypes" })
    public NeuroBrain(AgentType brainsBody, ParCollection params) {
        super(brainsBody);
        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;
                int id = neuralNet.addNeuron(Neuron.INPUT_NEURON);
                sensors.put(id, sensor);
            } catch (Exception e) {
            }
        }

        this.neuralNet.addNeuron(new ActivationFunctionSigmoid(0.001), Neuron.HIDDEN_NEURON); // TODO: Delete this line!

        for (GenericActuator<?, AbstractAgent<?>> akt : this.getMyBody().getActuators()) {
            try {
                GenericRealValueDrivenActuator<AbstractEnvironment<?>, AbstractAgent<?>> actuator
                    = (GenericRealValueDrivenActuator<AbstractEnvironment<?>, AbstractAgent<?>>) akt;
View Full Code Here

TOP

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

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.