Exemplo n.º 1
0
        String GetCommandFromBackPropagation(int[,] sensorData, int sensorType)
        {
            int[,] processedSensorData = GetProcessedSensorData(sensorData);
            var robotCommand =
                BackPropagation.Driver("Command", _sensorTypeString[sensorType],
                                       convertToOneDimensionalDouble(processedSensorData));

            return(robotCommand);
        }
Exemplo n.º 2
0
        private void TrainNeuralNetworks(int algorithmType, int sensorType)
        {
            switch (algorithmType)
            {
            case (int)AlgorithmType.BackPropagation:
                BackPropagation.Driver("Train", _sensorTypeString[sensorType], null);
                break;

            case (int)AlgorithmType.FeedForward:
                forwardManager.GetDirectionFromFeedForward(_sensorTypeString[sensorType], new float[] { }, 0);
                break;
            }
        }