Changeset 3915 for trunk/sources/HeuristicLab.Problems.DataAnalysis.Regression/3.3/Symbolic/Analyzers
- Timestamp:
- 06/11/10 13:06:42 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Regression/3.3/Symbolic/Analyzers/BestSymbolicRegressionSolutionAnalyzer.cs
r3905 r3915 97 97 if (BestSolutionQualityParameter.ActualValue == null || BestSolutionQualityParameter.ActualValue.Value > Quality[i].Value) { 98 98 var model = new SymbolicRegressionModel((ISymbolicExpressionTreeInterpreter)SymbolicExpressionTreeInterpreter.Clone(), 99 SymbolicExpressionTree[i], 100 GetInputVariables(SymbolicExpressionTree[i])); 99 SymbolicExpressionTree[i]); 101 100 var solution = new SymbolicRegressionSolution(ProblemData, model, lowerEstimationLimit, upperEstimationLimit); 102 101 … … 134 133 } 135 134 136 private IEnumerable<string> GetInputVariables(SymbolicExpressionTree tree) {137 return (from varNode in tree.IterateNodesPrefix().OfType<VariableTreeNode>()138 select varNode.VariableName).Distinct();139 }140 135 } 141 136 }
Note: See TracChangeset
for help on using the changeset viewer.