Esempio n. 1
0
 private void fillRegressionChart()
 {
     if (dataSet[0].AmountOfArguments == 1)
     {
         RegressionTreeVisualizator.ClearChart(RegressionChart);
         RegressionTreeVisualizator.DrawCorrelationField(dataSet, RegressionChart);
         var treeVisualizator = new RegressionTreeVisualizator(Tree, RegressionChart);
         treeVisualizator.DrawRegressionLine("RegressionLine");
     }
 }
Esempio n. 2
0
 private void fillRandomForestChart()
 {
     if (dataSet[0].AmountOfArguments == 1)
     {
         RegressionTreeVisualizator.ClearChart(RandomForestChart);
         RegressionTreeVisualizator.DrawCorrelationField(dataSet, RandomForestChart);
         for (int i = 0; i < Forest.AmountOfTrees; i++)
         {
             var treeVisualizator = new RegressionTreeVisualizator(Forest.Trees[i], RandomForestChart);
             RandomForestChart.Series.Add(Forest.Trees[i].Name);
             RandomForestChart.Series[Forest.Trees[i].Name].Color       = Color.Red;
             RandomForestChart.Series[Forest.Trees[i].Name].BorderWidth = 1;
             RandomForestChart.Series[Forest.Trees[i].Name].ChartType   = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.StepLine;
             treeVisualizator.DrawRegressionLine(Forest.Trees[i].Name);
         }
     }
 }