Free cookie consent management tool by TermsFeed Policy Generator

Changeset 16190


Ignore:
Timestamp:
09/27/18 10:10:29 (6 years ago)
Author:
fholzing
Message:

#2904: Added changes from #2910 to ClassificationSolutionVariableImpactsCalculator

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2904_CalculateImpacts/3.4/Implementation/Classification/ClassificationSolutionVariableImpactsCalculator.cs

    r16189 r16190  
    113113      IEnumerable<int> rows = GetPartitionRows(dataPartition, solution.ProblemData);
    114114      IEnumerable<double> estimatedClassValues = solution.GetEstimatedClassValues(rows);
    115       return CalculateImpacts(solution.Model, solution.ProblemData, estimatedClassValues, rows, replacementMethod, factorReplacementMethod);
     115      var model = (IClassificationModel)solution.Model.Clone(); //mkommend: clone of model is necessary, because the thresholds for IDiscriminantClassificationModels are updated
     116
     117      return CalculateImpacts(model, solution.ProblemData, estimatedClassValues, rows, replacementMethod, factorReplacementMethod);
    116118    }
    117119
Note: See TracChangeset for help on using the changeset viewer.