public Form1() { InitializeComponent(); videoDevicesList = new FilterInfoCollection(FilterCategory.VideoInputDevice); foreach (FilterInfo videoDevice in videoDevicesList) { cmbVideoSource.Items.Add(videoDevice.Name); } if (cmbVideoSource.Items.Count > 0) { cmbVideoSource.SelectedIndex = 0; } else { MessageBox.Show("Камера не найдена!", "Ошибка!", MessageBoxButtons.OK, MessageBoxIcon.Error); } net = new Accord.Neuro.ActivationNetwork(new Accord.Neuro.BipolarSigmoidFunction(), sensors_count, sensors_count * 3, sensors_count * 2, sensors_count, 100, digit_count); backprog = new Accord.Neuro.Learning.ParallelResilientBackpropagationLearning(net); nguyen = new Accord.Neuro.NguyenWidrow(net); nguyen.Randomize(); comboBox1.SelectedIndex = 0; }
public Form1() { InitializeComponent(); videoDevicesList = new FilterInfoCollection(FilterCategory.VideoInputDevice); foreach (FilterInfo videoDevice in videoDevicesList) { cmbVideoSource.Items.Add(videoDevice.Name); } if (cmbVideoSource.Items.Count > 0) { cmbVideoSource.SelectedIndex = 0; } accord = new Accord.Neuro.ActivationNetwork(new Accord.Neuro.BipolarSigmoidFunction(), sensors_count, sensors_count * 3, sensors_count * 2, sensors_count, 100, classes_count); backprog = new Accord.Neuro.Learning.ParallelResilientBackpropagationLearning(accord); nguyen = new Accord.Neuro.NguyenWidrow(accord); nguyen.Randomize(); int[] arr = { sensors_count * 3, sensors_count * 2, sensors_count, 100, classes_count }; dimas = new Network(sensors_count, arr); comboBox1.SelectedIndex = 0; bot_init(); clips_init(); }
private void button6_Click(object sender, EventArgs e) { DialogResult res = openFileDialog1.ShowDialog(); if (res == DialogResult.OK) { net = Accord.Neuro.Network.Load(openFileDialog1.FileName) as Accord.Neuro.ActivationNetwork; } }
void CreateTeacher() { Accord.Neuro.ActivationNetwork net = (Accord.Neuro.ActivationNetwork)_Network; _Teacher = new Accord.Neuro.Learning.ParallelResilientBackpropagationLearning(net); }
void CreateNetwork(Accord.Neuro.IActivationFunction function, int inputneurons, int[] hiddenlayers) { _Network = new Accord.Neuro.ActivationNetwork(function, inputneurons, hiddenlayers); _InputNeurons = inputneurons; }