示例#1
0
 private void ReatToChart(Network.TrainingSet ts)
 {
     chart1.Series[0].Points.Clear();
     chart1.Series[0].ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Point;
     for (int i = 0; i < ts.TeachSetLength; i++)
     {
         chart1.Series[0].Points.AddXY(ts.X[0][i], ts.Y[0][i]);
     }
 }
示例#2
0
 private void btnWriteTrainSet_Click(object sender, EventArgs e)
 {
     if (net == null)
     {
         MessageBox.Show("Сначала инициализируй сеть"); return;
     }
     (sender as Button).Enabled = false;
     Network.TrainingSet ts = ReadTrainingSet();
     net.SetTrainingSet(ts);
     ReatToChart(ts);
     (sender as Button).Enabled = true;
     btnTeachNet.Enabled        = true;
 }