Populating the graphs

This function populates the graphs with training and test data:

private void PopulateGraphs(float[][] train, float[][] test)
{
if (train == null)
throw new ArgumentException("TrainNetwork parameter cannot be null");
if (test == null)
throw new ArgumentException("test parameter cannot be null");
for (int i=0; i<train.Length; i++)
trainingDataLine?.AddPoint(new PointPair(i + 1, train[i][0]));
for (int i = 0; i < test.Length; i++)
testDataLine?.AddPoint(new PointPair(i + 1, test[i][0]));
zedGraphControl1?.RestoreScale(zedGraphControl1.GraphPane);
zedGraphControl3?.RestoreScale(zedGraphControl3.GraphPane);
}
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset