Free cookie consent management tool by TermsFeed Policy Generator

Changeset 15088


Ignore:
Timestamp:
06/29/17 14:00:46 (7 years ago)
Author:
mkommend
Message:

#2779: Added target as calculated feature to ResidualAnalysisView.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression/RegressionSolutionResidualAnalysisView.cs

    r15024 r15088  
    2323using System.Drawing;
    2424using System.Linq;
    25 using HeuristicLab.Common;
    2625using HeuristicLab.Data;
    2726using HeuristicLab.MainForm;
     
    3433
    3534    // names should be relatively save to prevent collisions with variable names in the dataset
     35    private const string TargetLabel = "> Target";
    3636    private const string PredictionLabel = "> Prediction";
    3737    private const string ResidualLabel = "> Residual";
     
    126126      var residual = target - pred;
    127127      var relError = residual / target;
     128      run.Results.Add(TargetLabel, new DoubleValue(target));
    128129      run.Results.Add(PredictionLabel, new DoubleValue(pred));
    129130      run.Results.Add(ResidualLabel, new DoubleValue(residual));
Note: See TracChangeset for help on using the changeset viewer.