Exemple #1
0
        //Не работает!
        private void button1_Click(object sender, EventArgs e)
        {
            var answers    = CreateLabelForPerceptron();
            var perceptron = new NeuralNetwork(5, 0, 1);

            perceptron.Patterns = nn.Patterns;
            perceptron.AddNeuralLayer(6, 0.1);
            perceptron.AddNeuralLayer(3, 0.1);
            perceptron.OutputLayer[1][0].perceptronClassInit = "Setosa";
            perceptron.OutputLayer[1][1].perceptronClassInit = "Versicolor";
            perceptron.OutputLayer[1][2].perceptronClassInit = "Virginica";
            perceptron.Classes = nn.Classes;
            perceptron.TrainPerceptron2();
            perceptron.CreateClassNamesForEachNeuron();
            CheckSuccessPercentagePerceptron(nn);
        }