- Timestamp:
- 08/11/10 13:01:40 (14 years ago)
- Location:
- branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.Regression
- Files:
-
- 1 edited
- 10 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.Regression/3.3/Symbolic/Analyzers/BestSymbolicRegressionSolutionAnalyzer.cs
r4125 r4195 40 40 private const string VariableImpactsResultName = "Integrated variable frequencies"; 41 41 private const string BestSolutionParameterName = "BestSolution"; 42 private const string BestSolutionComplexity = "Best solution complexity"; 42 43 43 44 #region parameter properties … … 110 111 results[BestSolutionInputvariableCountResultName].Value = new IntValue(bestSolution.Model.InputVariables.Count()); 111 112 results[VariableImpactsResultName].Value = CalculateVariableImpacts(variableFrequencies); 113 var sizeTable = (DataTable)results[BestSolutionComplexity].Value; 114 sizeTable.Rows["Best solution size"].Values.Add(bestSolution.Model.SymbolicExpressionTree.Size); 115 sizeTable.Rows["Best solution height"].Values.Add(bestSolution.Model.SymbolicExpressionTree.Height); 116 sizeTable.Rows["Best solution variables"].Values.Add(bestSolution.Model.InputVariables.Count()); 112 117 } else { 113 118 results.Add(new Result(BestSolutionInputvariableCountResultName, new IntValue(bestSolution.Model.InputVariables.Count()))); 114 119 results.Add(new Result(VariableImpactsResultName, CalculateVariableImpacts(variableFrequencies))); 120 var sizeTable = new DataTable("Best solution complexity"); 121 sizeTable.Rows.Add(new DataRow("Best solution size")); 122 sizeTable.Rows.Add(new DataRow("Best solution height")); 123 sizeTable.Rows.Add(new DataRow("Best solution variables")); 124 sizeTable.Rows["Best solution size"].Values.Add(bestSolution.Model.SymbolicExpressionTree.Size); 125 sizeTable.Rows["Best solution height"].Values.Add(bestSolution.Model.SymbolicExpressionTree.Height); 126 sizeTable.Rows["Best solution variables"].Values.Add(bestSolution.Model.InputVariables.Count()); 127 results.Add(new Result(BestSolutionComplexity, sizeTable)); 115 128 } 116 129 }
Note: See TracChangeset
for help on using the changeset viewer.