Changeset 8723 for trunk/sources/HeuristicLab.Problems.DataAnalysis
- Timestamp:
- 10/03/12 11:38:57 (12 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/ClassificationEnsembleSolution.cs
r8528 r8723 153 153 } 154 154 155 protected override void RecalculateResults() {156 CalculateResults();157 }158 155 159 156 #region Evaluation -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/ClassificationSolution.cs
r8174 r8723 45 45 : base(model, problemData) { 46 46 evaluationCache = new Dictionary<int, double>(problemData.Dataset.Rows); 47 CalculateClassificationResults(); 47 48 } 48 49 -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/ClassificationSolutionBase.cs
r8139 r8723 85 85 } 86 86 87 protected void Calculate Results() {87 protected void CalculateClassificationResults() { 88 88 double[] estimatedTrainingClassValues = EstimatedTrainingClassValues.ToArray(); // cache values 89 89 double[] originalTrainingClassValues = ProblemData.Dataset.GetDoubleValues(ProblemData.TargetVariable, ProblemData.TrainingIndices).ToArray(); … … 114 114 115 115 public abstract IEnumerable<double> GetEstimatedClassValues(IEnumerable<int> rows); 116 117 protected override void RecalculateResults() { 118 CalculateClassificationResults(); 119 } 116 120 } 117 121 } -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/DiscriminantFunctionClassificationSolution.cs
r8684 r8723 51 51 valueEvaluationCache = new Dictionary<int, double>(); 52 52 classValueEvaluationCache = new Dictionary<int, double>(); 53 CalculateDiscriminantFunctionClassificationResults(); 53 CalculateRegressionResults(); 54 CalculateClassificationResults(); 54 55 } 55 56 … … 117 118 base.OnProblemDataChanged(); 118 119 } 119 120 121 private void CalculateDiscriminantFunctionClassificationResults() {122 CalculateResults();123 CalculateRegressionResults();124 }125 126 protected override void RecalculateResults() {127 CalculateDiscriminantFunctionClassificationResults();128 }129 120 } 130 121 } -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/DiscriminantFunctionClassificationSolutionBase.cs
r8552 r8723 85 85 Add(new Result(TrainingRSquaredResultName, "Squared Pearson's correlation coefficient of the model output and the actual values on the training partition", new DoubleValue())); 86 86 Add(new Result(TestRSquaredResultName, "Squared Pearson's correlation coefficient of the model output and the actual values on the test partition", new DoubleValue())); 87 88 87 RegisterEventHandler(); 89 88 } … … 139 138 140 139 public abstract IEnumerable<double> GetEstimatedValues(IEnumerable<int> rows); 140 141 protected override void RecalculateResults() { 142 base.RecalculateResults(); 143 CalculateRegressionResults(); 144 } 141 145 } 142 146 } -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/RegressionEnsembleSolution.cs
r8174 r8723 155 155 } 156 156 157 protected override void RecalculateResults() {158 CalculateResults();159 }160 161 157 #region Evaluation 162 158 public override IEnumerable<double> EstimatedTrainingValues { -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/RegressionSolution.cs
r8139 r8723 45 45 : base(model, problemData) { 46 46 evaluationCache = new Dictionary<int, double>(problemData.Dataset.Rows); 47 CalculateRegressionResults(); 47 48 } 48 49 49 protected override void RecalculateResults() {50 CalculateResults();51 }52 50 53 51 public override IEnumerable<double> EstimatedValues { -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/RegressionSolutionBase.cs
r8139 r8723 164 164 } 165 165 166 protected void CalculateResults() { 166 protected override void RecalculateResults() { 167 CalculateRegressionResults(); 168 } 169 170 protected void CalculateRegressionResults() { 167 171 IEnumerable<double> estimatedTrainingValues = EstimatedTrainingValues; // cache values 168 172 IEnumerable<double> originalTrainingValues = ProblemData.Dataset.GetDoubleValues(ProblemData.TargetVariable, ProblemData.TrainingIndices);
Note: See TracChangeset
for help on using the changeset viewer.