Changeset 6415 for branches/GP.Grammar.Editor/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression
- Timestamp:
- 06/15/11 23:02:01 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GP.Grammar.Editor/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/RegressionSolution.cs
r6387 r6415 20 20 #endregion 21 21 22 using System;23 22 using System.Collections.Generic; 24 23 using System.Linq; … … 110 109 Add(new Result(TestNormalizedMeanSquaredErrorResultName, "Normalized mean of squared errors of the model on the test partition", new DoubleValue())); 111 110 112 RecalculateResults();111 CalculateResults(); 113 112 } 114 113 … … 117 116 } 118 117 119 protected override void OnProblemDataChanged(EventArgs e) { 120 RecalculateResults(); 121 base.OnProblemDataChanged(e); 122 } 123 protected override void OnModelChanged(EventArgs e) { 124 RecalculateResults(); 125 base.OnModelChanged(e); 118 protected override void RecalculateResults() { 119 CalculateResults(); 126 120 } 127 121 128 pr otected void RecalculateResults() {122 private void CalculateResults() { 129 123 double[] estimatedTrainingValues = EstimatedTrainingValues.ToArray(); // cache values 130 124 IEnumerable<double> originalTrainingValues = ProblemData.Dataset.GetEnumeratedVariableValues(ProblemData.TargetVariable, ProblemData.TrainingIndizes);
Note: See TracChangeset
for help on using the changeset viewer.