Changeset 6760 for branches/PersistenceSpeedUp/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression.Views/3.4/InteractiveSymbolicRegressionSolutionSimplifierView.cs
- Timestamp:
- 09/14/11 13:59:25 (13 years ago)
- Location:
- branches/PersistenceSpeedUp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PersistenceSpeedUp
- Property svn:ignore
-
old new 12 12 *.psess 13 13 *.vsp 14 *.docstates
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/PersistenceSpeedUp/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression.Views/3.4/InteractiveSymbolicRegressionSolutionSimplifierView.cs
r5993 r6760 22 22 using System; 23 23 using System.Collections.Generic; 24 using System.Drawing;25 24 using System.Linq; 26 using System.Windows.Forms;27 25 using HeuristicLab.Common; 28 using HeuristicLab. MainForm.WindowsForms;26 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 29 27 using HeuristicLab.Problems.DataAnalysis.Symbolic.Views; 30 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;31 28 32 29 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Regression.Views { … … 75 72 var originalOutput = interpreter.GetSymbolicExpressionTreeValues(tree, dataset, rows) 76 73 .ToArray(); 77 var targetValues = dataset.Get EnumeratedVariableValues(targetVariable, rows);74 var targetValues = dataset.GetDoubleValues(targetVariable, rows); 78 75 OnlineCalculatorError errorState; 79 76 double originalR2 = OnlinePearsonsRSquaredCalculator.Calculate(targetValues, originalOutput, out errorState); … … 123 120 } 124 121 } 122 123 protected override void btnOptimizeConstants_Click(object sender, EventArgs e) { 124 SymbolicRegressionConstantOptimizationEvaluator.OptimizeConstants(Content.Model.Interpreter, Content.Model.SymbolicExpressionTree, Content.ProblemData, Content.ProblemData.TrainingIndizes, 0.001, 0, 0.0001); 125 UpdateModel(Content.Model.SymbolicExpressionTree); 126 } 125 127 } 126 128 }
Note: See TracChangeset
for help on using the changeset viewer.