Changeset 3790 for trunk/sources/HeuristicLab.Problems.DataAnalysis.Regression/3.3/Symbolic/Analyzers
- Timestamp:
- 05/11/10 21:44:55 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Regression/3.3/Symbolic/Analyzers/ValidationBestScaledSymbolicRegressionSolutionAnalyzer.cs
r3710 r3790 60 60 private const string CurrentBestValidationQualityParameterName = "Current best validation quality"; 61 61 private const string ResultsParameterName = "Results"; 62 private const string BestKnownQualityParameterName = "BestKnownQuality"; 62 63 63 64 public ScopeTreeLookupParameter<SymbolicExpressionTree> SymbolicExpressionTreeParameter { … … 90 91 public ILookupParameter<ResultCollection> ResultsParameter { 91 92 get { return (ILookupParameter<ResultCollection>)Parameters[ResultsParameterName]; } 93 } 94 public ILookupParameter<DoubleValue> BestKnownQualityParameter { 95 get { return (ILookupParameter<DoubleValue>)Parameters[BestKnownQualityParameterName]; } 92 96 } 93 97 … … 111 115 Parameters.Add(new LookupParameter<DoubleValue>(BestSolutionQualityParameterName, "The quality of the best symbolic regression solution.")); 112 116 Parameters.Add(new LookupParameter<ResultCollection>(ResultsParameterName, "The result collection where the best symbolic regression solution should be stored.")); 117 Parameters.Add(new LookupParameter<DoubleValue>(BestKnownQualityParameterName, "The best known (validation) quality achieved on the data set.")); 113 118 114 119 #region operator initialization … … 117 122 SymbolicRegressionMeanSquaredErrorEvaluator validationMseEvaluator = new SymbolicRegressionMeanSquaredErrorEvaluator(); 118 123 bestSolutionAnalyzer = new BestSymbolicRegressionSolutionAnalyzer(); 124 BestQualityMemorizer bestKnownQualityMemorizer = new BestQualityMemorizer(); 119 125 bestAvgWorstValidationQualityCalculator = new BestAverageWorstQualityCalculator(); 120 126 DataTableValuesCollector validationValuesCollector = new DataTableValuesCollector(); … … 157 163 bestAvgWorstValidationQualityCalculator.WorstQualityParameter.ActualName = "Current worst validation quality"; 158 164 165 bestKnownQualityMemorizer.BestQualityParameter.ActualName = BestKnownQualityParameterName; 166 bestKnownQualityMemorizer.MaximizationParameter.Value = new BoolValue(false); 167 bestKnownQualityMemorizer.QualityParameter.ActualName = CurrentBestValidationQualityParameterName; 168 bestKnownQualityMemorizer.QualityParameter.Depth = 0; 169 159 170 validationValuesCollector.DataTableParameter.ActualName = "Validation quality"; 160 171 validationValuesCollector.CollectedValues.Add(new LookupParameter<DoubleValue>(CurrentBestValidationQualityParameterName, null, CurrentBestValidationQualityParameterName)); … … 174 185 subScopesProcessor.Successor = bestSolutionAnalyzer; 175 186 bestSolutionAnalyzer.Successor = bestAvgWorstValidationQualityCalculator; 176 bestAvgWorstValidationQualityCalculator.Successor = validationValuesCollector; 187 bestAvgWorstValidationQualityCalculator.Successor = bestKnownQualityMemorizer; 188 bestKnownQualityMemorizer.Successor = validationValuesCollector; 177 189 validationValuesCollector.Successor = resultsCollector; 178 190 resultsCollector.Successor = null;
Note: See TracChangeset
for help on using the changeset viewer.