deep-learning icon indicating copy to clipboard operation
deep-learning copied to clipboard

Test input length

Open Yashil opened this issue 9 years ago • 0 comments

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.

Yashil avatar Apr 07 '16 09:04 Yashil