String GetCommandFromBackPropagation(int[,] sensorData, int sensorType) { int[,] processedSensorData = GetProcessedSensorData(sensorData); var robotCommand = BackPropagation.Driver("Command", _sensorTypeString[sensorType], convertToOneDimensionalDouble(processedSensorData)); return(robotCommand); }
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; } }