public NeuralGeneConnection(NeuralGeneNode _inputNeuron, NeuralGeneNode _outputNeuron, bool _connectionIsEnabled, int _innovation)
 {
     inputNeuron         = _inputNeuron;
     outputNeuron        = _outputNeuron;
     weight              = NeatNeuralNetwork.GetRandom();
     connectionIsEnabled = _connectionIsEnabled;
     innovation          = _innovation;
 }
Пример #2
0
 public NeuralGeneNode(NeuralActivationFunction _neuralActivationFunction, int _nodeNumber, NeuralNodeType _nodeType)
 {
     inputSynapses  = new List <NeuralGeneConnection>();
     outputSynapses = new List <NeuralGeneConnection>();
     SetActivationFunction(_neuralActivationFunction);
     nodeNumber = _nodeNumber;
     nodeType   = _nodeType;
     bias       = NeatNeuralNetwork.GetRandom();
 }
Пример #3
0
 public void AddConnection(NeuralGeneNode _inputNeuron, NeuralGeneConnection _synapse, bool _connectionIsEnabled, int _innovation)
 {
     bias = NeatNeuralNetwork.GetRandom();
     _inputNeuron.outputSynapses.Add(_synapse);
     inputSynapses.Add(_synapse);
 }