Changeset 16190 for branches/2904_CalculateImpacts/3.4/Implementation/Classification/ClassificationSolutionVariableImpactsCalculator.cs
- Timestamp:
- 09/27/18 10:10:29 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2904_CalculateImpacts/3.4/Implementation/Classification/ClassificationSolutionVariableImpactsCalculator.cs
r16189 r16190 113 113 IEnumerable<int> rows = GetPartitionRows(dataPartition, solution.ProblemData); 114 114 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); 116 118 } 117 119
Note: See TracChangeset
for help on using the changeset viewer.