Beispiel #1
0
        public TrainingReportModel()
        {
            var model = new PlotModelEx {
                LegendPosition = LegendPosition.TopRight
            };

            model.LinearXAxis();

            _errorSeries = SeriesBuilder.LineSeries(Enumerable.Empty <DataPoint>(), x => x);
            _errorSeries.Series.Title     = "Training error";
            _errorSeries.Series.Decimator = Decimator.Decimate;

            _testErrorSeries = SeriesBuilder.LineSeries(Enumerable.Empty <DataPoint>(), x => x);
            _testErrorSeries.Series.Title     = "Test error";
            _testErrorSeries.Series.Decimator = Decimator.Decimate;

            model[0, 0] = _errorSeries;
            model[0, 1] = _testErrorSeries;

            PlotModel = model;
        }