Changeset 18100 for branches/3140_NumberSymbol/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SymbolicRegressionPruningOperator.cs
- Timestamp:
- 12/01/21 13:40:55 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3140_NumberSymbol/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SymbolicRegressionPruningOperator.cs
r17180 r18100 91 91 for (int i = 0; i < nodes.Count; ++i) { 92 92 var node = nodes[i]; 93 if (node is ConstantTreeNode) continue;93 if (node is NumberTreeNode) continue; 94 94 95 95 double impactValue, replacementValue; … … 100 100 if (!pruneOnlyZeroImpactNodes && impactValue > nodeImpactThreshold) continue; 101 101 102 var constantNode = ( ConstantTreeNode)node.Grammar.GetSymbol("Constant").CreateTreeNode();102 var constantNode = (NumberTreeNode)node.Grammar.GetSymbol("Number").CreateTreeNode(); 103 103 constantNode.Value = replacementValue; 104 104
Note: See TracChangeset
for help on using the changeset viewer.