private static double[] GenerateRandomBias(int outputSize) { double[] bias = new double[outputSize]; for (int i = 0; i < outputSize; i++) { bias[i] = NeuralNetwork.RandomWeight(); } return(bias); }
private static double[,] GenerateRandomConnection(int inputSize, int outputSize) { double[,] connection = new double[outputSize, inputSize]; for (int i = 0; i < outputSize; i++) { for (int j = 0; j < inputSize; j++) { connection[i, j] = NeuralNetwork.RandomWeight(); } } return(connection); }