Exemple #1
0
        private void buttonTest_Click(object sender, EventArgs e)
        {
            var testingVector = Vector <double> .Build.DenseOfArray(GetVectorFromPattern());

            NeuralVector outputVector;

            try
            {
                outputVector = _hopfieldNetwork.Test(new NeuralVector(testingVector));
            }
            catch (Exception exception)
            {
                SetStatusStrip(Color.Red, exception.Message);
                return;
            }

            FillTextBoxByData(txtBoxOutputVector, outputVector.Data);
            FillPatternByOutput(outputVector);

            SetStatusStrip(Color.LightBlue, "");
        }