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