protected void Init() { population = new List <INeuralNet>(); fitness = new Dictionary <INeuralNet, float>(); for (int i = 0; i < populationSize; i++) { var net = NeuralNetsProvider.GetRandomMultiLayerNeuralNet(1, 1, 1, 1); population.Add(net); fitness.Add(net, 0.0f); } }
public PlayerBehaviourScript() { MovingNeuralNet = NeuralNetsProvider.GetRandomMultiLayerNeuralNet(6, 2, 8, 1); MovingWithBallNeuralNet = NeuralNetsProvider.GetRandomMultiLayerNeuralNet(4, 2, 8, 1); KickingBallNeuralNet = NeuralNetsProvider.GetRandomMultiLayerNeuralNet(4, 3, 8, 1); }