Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/11/10 21:44:55 (15 years ago)
Author:
abeham
Message:

#893

  • Updated ValidationBestScaledSymbolicRegressionSolutionAnalyzer to track BestKnownQuality
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Regression/3.3/Symbolic/Analyzers/ValidationBestScaledSymbolicRegressionSolutionAnalyzer.cs

    r3710 r3790  
    6060    private const string CurrentBestValidationQualityParameterName = "Current best validation quality";
    6161    private const string ResultsParameterName = "Results";
     62    private const string BestKnownQualityParameterName = "BestKnownQuality";
    6263
    6364    public ScopeTreeLookupParameter<SymbolicExpressionTree> SymbolicExpressionTreeParameter {
     
    9091    public ILookupParameter<ResultCollection> ResultsParameter {
    9192      get { return (ILookupParameter<ResultCollection>)Parameters[ResultsParameterName]; }
     93    }
     94    public ILookupParameter<DoubleValue> BestKnownQualityParameter {
     95      get { return (ILookupParameter<DoubleValue>)Parameters[BestKnownQualityParameterName]; }
    9296    }
    9397
     
    111115      Parameters.Add(new LookupParameter<DoubleValue>(BestSolutionQualityParameterName, "The quality of the best symbolic regression solution."));
    112116      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."));
    113118
    114119      #region operator initialization
     
    117122      SymbolicRegressionMeanSquaredErrorEvaluator validationMseEvaluator = new SymbolicRegressionMeanSquaredErrorEvaluator();
    118123      bestSolutionAnalyzer = new BestSymbolicRegressionSolutionAnalyzer();
     124      BestQualityMemorizer bestKnownQualityMemorizer = new BestQualityMemorizer();
    119125       bestAvgWorstValidationQualityCalculator = new BestAverageWorstQualityCalculator();
    120126      DataTableValuesCollector validationValuesCollector = new DataTableValuesCollector();
     
    157163      bestAvgWorstValidationQualityCalculator.WorstQualityParameter.ActualName = "Current worst validation quality";
    158164
     165      bestKnownQualityMemorizer.BestQualityParameter.ActualName = BestKnownQualityParameterName;
     166      bestKnownQualityMemorizer.MaximizationParameter.Value = new BoolValue(false);
     167      bestKnownQualityMemorizer.QualityParameter.ActualName = CurrentBestValidationQualityParameterName;
     168      bestKnownQualityMemorizer.QualityParameter.Depth = 0;
     169
    159170      validationValuesCollector.DataTableParameter.ActualName = "Validation quality";
    160171      validationValuesCollector.CollectedValues.Add(new LookupParameter<DoubleValue>(CurrentBestValidationQualityParameterName, null, CurrentBestValidationQualityParameterName));
     
    174185      subScopesProcessor.Successor = bestSolutionAnalyzer;
    175186      bestSolutionAnalyzer.Successor = bestAvgWorstValidationQualityCalculator;
    176       bestAvgWorstValidationQualityCalculator.Successor = validationValuesCollector;
     187      bestAvgWorstValidationQualityCalculator.Successor = bestKnownQualityMemorizer;
     188      bestKnownQualityMemorizer.Successor = validationValuesCollector;
    177189      validationValuesCollector.Successor = resultsCollector;
    178190      resultsCollector.Successor = null;
Note: See TracChangeset for help on using the changeset viewer.