Changeset 6377 for branches/GP.Grammar.Editor/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression
- Timestamp:
- 06/07/11 12:49:03 (14 years ago)
- Location:
- branches/GP.Grammar.Editor/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GP.Grammar.Editor/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/RegressionEnsembleSolution.cs
r6254 r6377 51 51 trainingPartitions = new Dictionary<IRegressionModel, IntRange>(); 52 52 testPartitions = new Dictionary<IRegressionModel, IntRange>(); 53 foreach (var model in Model.Models) { 54 trainingPartitions[model] = (IntRange)ProblemData.TrainingPartition.Clone(); 55 testPartitions[model] = (IntRange)ProblemData.TestPartition.Clone(); 53 foreach (var pair in original.trainingPartitions) { 54 trainingPartitions[cloner.Clone(pair.Key)] = cloner.Clone(pair.Value); 56 55 } 56 foreach (var pair in original.testPartitions) { 57 testPartitions[cloner.Clone(pair.Key)] = cloner.Clone(pair.Value); 58 } 59 RecalculateResults(); 57 60 } 58 61 -
branches/GP.Grammar.Editor/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/RegressionSolution.cs
r6238 r6377 126 126 } 127 127 128 protected v oid RecalculateResults() {128 protected virtual void RecalculateResults() { 129 129 double[] estimatedTrainingValues = EstimatedTrainingValues.ToArray(); // cache values 130 130 IEnumerable<double> originalTrainingValues = ProblemData.Dataset.GetEnumeratedVariableValues(ProblemData.TargetVariable, ProblemData.TrainingIndizes);
Note: See TracChangeset
for help on using the changeset viewer.