Example #1
0
        private static void TestGeneratedData()
        {
            var neuron = Train(Neuron.Untrained(NumberOfInputs, TrainingRate), GenerateData(1000));

            var results = Test(neuron, GenerateData(2000));

            TestResultWriter.OutputResults("Generated Data", results);
        }
Example #2
0
        private static void TestFileData()
        {
            var neuron = Train(Neuron.Untrained(NumberOfInputs, TrainingRate), ReadDataFrom(TrainingDataFile));

            var results = Test(neuron, ReadDataFrom(TestDataFile));

            TestResultWriter.OutputResults("File Data", results);
        }