Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/16/11 12:00:36 (13 years ago)
Author:
mkommend
Message:

#1479: Integrated trunk changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GP.Grammar.Editor/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression/RegressionSolutionErrorCharacteristicsCurveView.cs

    r6647 r6784  
    139139        if (residuals[i] > chart.ChartAreas[0].AxisX.Maximum) {
    140140          point.XValue = chart.ChartAreas[0].AxisX.Maximum;
    141           point.YValues[0] = ((double)i - 1) / residuals.Count;
     141          point.YValues[0] = ((double)i) / residuals.Count;
    142142          point.ToolTip = "Error: " + point.XValue + "\n" + "Samples: " + point.YValues[0];
    143143          series.Points.Add(point);
     
    146146
    147147        point.XValue = residuals[i];
    148         point.YValues[0] = ((double)i) / residuals.Count;
     148        point.YValues[0] = ((double)i+1) / residuals.Count;
    149149        point.ToolTip = "Error: " + point.XValue + "\n" + "Samples: " + point.YValues[0];
    150150        series.Points.Add(point);
     
    164164      switch (cmbSamples.SelectedItem.ToString()) {
    165165        case TrainingSamples:
    166           originalValues = ProblemData.Dataset.GetEnumeratedVariableValues(ProblemData.TargetVariable, ProblemData.TrainingIndizes);
     166          originalValues = ProblemData.Dataset.GetDoubleValues(ProblemData.TargetVariable, ProblemData.TrainingIndizes);
    167167          break;
    168168        case TestSamples:
    169           originalValues = ProblemData.Dataset.GetEnumeratedVariableValues(ProblemData.TargetVariable, ProblemData.TestIndizes);
     169          originalValues = ProblemData.Dataset.GetDoubleValues(ProblemData.TargetVariable, ProblemData.TestIndizes);
    170170          break;
    171171        case AllSamples:
    172           originalValues = ProblemData.Dataset.GetEnumeratedVariableValues(ProblemData.TargetVariable);
     172          originalValues = ProblemData.Dataset.GetDoubleValues(ProblemData.TargetVariable);
    173173          break;
    174174        default:
     
    197197
    198198    protected IEnumerable<double> GetMeanModelEstimatedValues(IEnumerable<double> originalValues) {
    199       double averageTrainingTarget = ProblemData.Dataset.GetEnumeratedVariableValues(ProblemData.TargetVariable, ProblemData.TrainingIndizes).Average();
     199      double averageTrainingTarget = ProblemData.Dataset.GetDoubleValues(ProblemData.TargetVariable, ProblemData.TrainingIndizes).Average();
    200200      return Enumerable.Repeat(averageTrainingTarget, originalValues.Count());
    201201    }
Note: See TracChangeset for help on using the changeset viewer.