Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/20/11 16:10:07 (13 years ago)
Author:
gkronber
Message:

#1450: implemented support for ensemble solutions for classification.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Classification/ClassificationSolutionConfusionMatrixView.cs

    r5975 r6239  
    103103        IEnumerable<int> rows;
    104104
     105        double[] predictedValues;
    105106        if (cmbSamples.SelectedItem.ToString() == TrainingSamples) {
    106107          rows = Content.ProblemData.TrainingIndizes;
     108          predictedValues = Content.EstimatedTrainingClassValues.ToArray();
    107109        } else if (cmbSamples.SelectedItem.ToString() == TestSamples) {
    108110          rows = Content.ProblemData.TestIndizes;
     111          predictedValues = Content.EstimatedTestClassValues.ToArray();         
    109112        } else throw new InvalidOperationException();
     113
     114        double[] targetValues = Content.ProblemData.Dataset.GetEnumeratedVariableValues(Content.ProblemData.TargetVariable, rows).ToArray();
    110115
    111116        Dictionary<double, int> classValueIndexMapping = new Dictionary<double, int>();
     
    115120          index++;
    116121        }
    117 
    118         double[] targetValues = Content.ProblemData.Dataset.GetEnumeratedVariableValues(Content.ProblemData.TargetVariable, rows).ToArray();
    119         double[] predictedValues = Content.GetEstimatedClassValues(rows).ToArray();
    120122
    121123        for (int i = 0; i < targetValues.Length; i++) {
Note: See TracChangeset for help on using the changeset viewer.