- Timestamp:
- 08/02/13 13:13:34 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SymbolicRegressionSolutionImpactValuesCalculator.cs
r9456 r9840 49 49 var replacementValue = CalculateReplacementValue(regressionModel, node, regressionProblemData, 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(regressionModel); 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); 54 60 55 61 var estimatedValues = tempModel.GetEstimatedValues(dataset, rows);
Note: See TracChangeset
for help on using the changeset viewer.