Changeset 17421


Ignore:
Timestamp:
02/04/20 16:47:16 (2 weeks ago)
Author:
mkommend
Message:

#3053: Adapted class names of new problem data before setting the positive class value.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification.Views/3.4/SolutionComparisonView.cs

    r17180 r17421  
    9191      var newDs = new Dataset(variableNames, variableValues);
    9292      var newProblemData = new ClassificationProblemData(newDs, variableNames.Take(variableNames.Length - 1), variableNames.Last());
     93
     94      foreach (var classValue in problemData.ClassValues) {
     95        newProblemData.SetClassName(classValue, problemData.GetClassName(classValue));
     96      }
    9397      newProblemData.PositiveClass = problemData.PositiveClass;
     98
    9499      newProblemData.TrainingPartition.Start = problemData.TrainingPartition.Start;
    95100      newProblemData.TrainingPartition.End = problemData.TrainingPartition.End;
Note: See TracChangeset for help on using the changeset viewer.