static NeuralNet NNCollectedData2() { var raw_up = ReadDataFromFile("Up.txt"); var raw_down = ReadDataFromFile("Down.txt"); var fft_up = RawToPackedNNData(raw_up); var fft_down = RawToPackedNNData(raw_down); var training_set = ConcatenateArrays(fft_up, fft_down); var Y = new int[training_set.GetUpperBound(0) + 1]; for (int i = 0; i < Y.Length; i++) { Y[i] = (i < fft_up.GetUpperBound(0) + 1) ? 0 : 1; } return(NeuralNet.ChooseBestNeuralNet(training_set, Y, new int[][] { //new int[] { 64 , 100, 2 }, //new int[] { 64 , 40, 2 }, //new int[] { 64 , 48, 24, 12, 6, 2 }, //new int[] { 64 , 100, 120, 130, 100, 2 } new int[] { 64, 33, 2 } }, 2000, new double[] { 1.0 })); }