Changeset 4195 for branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.Regression/3.3/Analyzers
- Timestamp:
- 08/11/10 13:01:40 (14 years ago)
- Location:
- branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.Regression
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.Regression/3.3/Analyzers/RegressionSolutionAnalyzer.cs
r4068 r4195 28 28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 29 29 using HeuristicLab.Problems.DataAnalysis.Evaluators; 30 using HeuristicLab.Analysis; 30 31 31 32 namespace HeuristicLab.Problems.DataAnalysis.Regression.Symbolic.Analyzers { … … 169 170 if (CurrentGeneration != null) // this check is needed because linear regression solutions do not have a generations parameter 170 171 results[BestSolutionGeneration].Value = new IntValue(CurrentGeneration.Value); 172 var solutionQualityTable = (DataTable)results["Best solution quality table"].Value; 173 solutionQualityTable.Rows["Training R²"].Values.Add(trainingR2); 174 solutionQualityTable.Rows["Training MSE"].Values.Add(trainingMse); 175 solutionQualityTable.Rows["Test R²"].Values.Add(testR2); 176 solutionQualityTable.Rows["Test MSE"].Values.Add(testMse); 171 177 } else { 172 178 results.Add(new Result(BestSolutionResultName, solution)); … … 179 185 if (CurrentGeneration != null) 180 186 results.Add(new Result(BestSolutionGeneration, new IntValue(CurrentGeneration.Value))); 187 var solutionQualityTable = new DataTable("Best solution quality table"); 188 solutionQualityTable.Rows.Add(new DataRow("Training R²")); 189 solutionQualityTable.Rows.Add(new DataRow("Training MSE")); 190 solutionQualityTable.Rows.Add(new DataRow("Test R²")); 191 solutionQualityTable.Rows.Add(new DataRow("Test MSE")); 192 solutionQualityTable.Rows["Training R²"].Values.Add(trainingR2); 193 solutionQualityTable.Rows["Training MSE"].Values.Add(trainingMse); 194 solutionQualityTable.Rows["Test R²"].Values.Add(testR2); 195 solutionQualityTable.Rows["Test MSE"].Values.Add(testMse); 196 results.Add(new Result("Best solution quality table", solutionQualityTable)); 181 197 } 182 198 #endregion
Note: See TracChangeset
for help on using the changeset viewer.