Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 10273
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification merged: 10273
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SymbolicClassificationSolutionImpactValuesCalculator.cs
r9456 r10281 49 49 var replacementValue = CalculateReplacementValue(classificationModel, node, classificationProblemData, rows); 50 50 var constantNode = new ConstantTreeNode(new Constant()) { Value = replacementValue }; 51 51 52 var cloner = new Cloner(); 52 cloner.RegisterClonedObject(node, constantNode);53 53 var tempModel = cloner.Clone(classificationModel); 54 tempModel.RecalculateModelParameters(classificationProblemData, rows); 54 var tempModelNode = (ISymbolicExpressionTreeNode)cloner.GetClone(node); 55 56 var tempModelParentNode = tempModelNode.Parent; 57 int i = tempModelParentNode.IndexOfSubtree(tempModelNode); 58 tempModelParentNode.RemoveSubtree(i); 59 tempModelParentNode.InsertSubtree(i, constantNode); 55 60 56 61 var estimatedClassValues = tempModel.GetEstimatedClassValues(dataset, rows);
Note: See TracChangeset
for help on using the changeset viewer.