Changeset 5942 for trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression.Views/3.4/InteractiveSymbolicRegressionSolutionSimplifierView.cs
- Timestamp:
- 04/04/11 15:38:16 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression.Views/3.4/InteractiveSymbolicRegressionSolutionSimplifierView.cs
r5894 r5942 78 78 .ToArray(); 79 79 var targetValues = dataset.GetEnumeratedVariableValues(targetVariable, rows); 80 Online EvaluatorError errorState;81 double originalR2 = OnlinePearsonsRSquared Evaluator.Calculate(targetValues, originalOutput, out errorState);82 if (errorState != Online EvaluatorError.None) originalR2 = 0.0;80 OnlineCalculatorError errorState; 81 double originalR2 = OnlinePearsonsRSquaredCalculator.Calculate(targetValues, originalOutput, out errorState); 82 if (errorState != OnlineCalculatorError.None) originalR2 = 0.0; 83 83 84 84 foreach (ISymbolicExpressionTreeNode node in nodes) { … … 88 88 SwitchNode(parent, node, replacementNode); 89 89 var newOutput = interpreter.GetSymbolicExpressionTreeValues(tree, dataset, rows); 90 double newR2 = OnlinePearsonsRSquared Evaluator.Calculate(targetValues, newOutput, out errorState);91 if (errorState != Online EvaluatorError.None) newR2 = 0.0;90 double newR2 = OnlinePearsonsRSquaredCalculator.Calculate(targetValues, newOutput, out errorState); 91 if (errorState != OnlineCalculatorError.None) newR2 = 0.0; 92 92 93 93 // impact = 0 if no change
Note: See TracChangeset
for help on using the changeset viewer.