Пример #1
0
        static void Main(string[] args)
        {
            // Store the training data into a datatable

            var inpgetter = GetCSV(@"C:\Users\daniel.l.astillero\Documents\Visual Studio 2017\Projects\AccentureCognitiveLibrary\DATASETS\inpnormal.csv");
            var outgetter = GetCSV(@"C:\Users\daniel.l.astillero\Documents\Visual Studio 2017\Projects\AccentureCognitiveLibrary\DATASETS\outnormalOtOnly.csv");

            Task.WaitAll(inpgetter, outgetter);

            var dtInput = inpgetter.Result as DataTable;

            var dtOutput = outgetter.Result as DataTable;

            var ffnn = new NeuralNetwork();

            ffnn.SetTrainingInputData(dtInput);

            ffnn.AddHiddenLayer(numOfHiddenNeurons: 6, activationFunction: ReLU);

            // ffnn.AddHiddenLayer(numOfHiddenNeurons: 9, activationFunction: Sigmoid);

            ffnn.SetTrainingOutputData(dtOutput);

            ffnn.LearningRate = 0.65f;

            ffnn.Epoch = 100000;

            ffnn.Train();

            Console.WriteLine("\n\nDone with training.");

            while (true)
            {
                Console.ReadKey();
            }
        }