Exemple #1
0
        private void learnFromScreen()
        {
            double[] inp  = imgToData(processor.GetImage());
            int      type = comboBox1.SelectedIndex;

            backprog.Run(inp, new int[digit_count].Select((d, i) => i == type ? 1.0 : 0.0).ToArray());
        }
Exemple #2
0
        private void learnFromScreen()
        {
            double[] inp  = imgToData(processor.GetImage());
            int      type = comboBox1.SelectedIndex;

            if (net == Net.Accord)
            {
                backprog.Run(inp, new int[classes_count].Select((d, i) => i == type ? 1.0 : 0.0).ToArray());
            }
            else if (net == Net.Dimas)
            {
                dimas.Run(inp, new int[classes_count].Select((d, i) => i == type ? 1.0 : 0.0).ToArray());
            }
        }