deep-learning
deep-learning copied to clipboard
Test input length
Hi,
File Program.cs: In the "Test the resulting accuracy" part, it's better to replace all "inputs.Length" with "testInputs.Length".
e.g. for (int i = 0; i < inputs.Length; i++) better be replaced by for (int i = 0; i < testInputs.Length; i++)
and Console.WriteLine("Correct " + correct + "/" + inputs.Length + ", " + Math.Round(((double)correct / (double)inputs.Length * 100), 2) + "%"); better be replaced by Console.WriteLine("Correct " + correct + "/" + testInputs.Length + ", " + Math.Round(((double)correct / (double)testInputs.Length * 100), 2) + "%");
Best,
Yashil.