Changeset 12461
- Timestamp:
- 06/17/15 21:44:37 (9 years ago)
- Location:
- trunk/sources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SymbolicClassificationPruningOperator.cs
r12358 r12461 85 85 var model = modelCreator.CreateSymbolicClassificationModel(clonedTree, interpreter, estimationLimits.Lower, estimationLimits.Upper); 86 86 87 var nodes = clonedTree. IterateNodesPrefix().ToList();87 var nodes = clonedTree.Root.GetSubtree(0).GetSubtree(0).IterateNodesPrefix().ToList(); 88 88 double quality = Evaluate(model, problemData, rows); 89 89 -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SymbolicRegressionPruningOperator.cs
r12358 r12461 71 71 var clonedTree = (ISymbolicExpressionTree)tree.Clone(); 72 72 var model = new SymbolicRegressionModel(clonedTree, interpreter, estimationLimits.Lower, estimationLimits.Upper); 73 var nodes = clonedTree. IterateNodesPrefix().ToList();73 var nodes = clonedTree.Root.GetSubtree(0).GetSubtree(0).IterateNodesPrefix().ToList(); // skip the nodes corresponding to the ProgramRootSymbol and the StartSymbol 74 74 double quality = Evaluate(model, problemData, rows); 75 75
Note: See TracChangeset
for help on using the changeset viewer.