Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/18/10 19:46:02 (14 years ago)
Author:
gkronber
Message:

Added complexity reduction scheme based on validation performance for CPP. #1142

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.Regression/3.3/Symbolic/Analyzers/FixedValidationBestScaledSymbolicRegressionSolutionAnalyzer.cs

    r4244 r4255  
    146146      get { return (ILookupParameter<DoubleValue>)Parameters[BestSolutionQualityParameterName]; }
    147147    }
     148    public ILookupParameter<DataTable> BestSolutionQualityValuesParameter {
     149      get { return (ILookupParameter<DataTable>)Parameters[BestSolutionQualityValuesParameterName]; }
     150    }
    148151    public ILookupParameter<ResultCollection> ResultsParameter {
    149152      get { return (ILookupParameter<ResultCollection>)Parameters[ResultsParameterName]; }
     
    230233      Parameters.Add(new LookupParameter<DoubleValue>(BestKnownQualityParameterName, "The best known (validation) quality achieved on the data set."));
    231234      Parameters.Add(new LookupParameter<DoubleValue>(CurrentBestValidationQualityParameterName, "The quality of the best solution (on the validation set) of the current generation."));
     235      Parameters.Add(new LookupParameter<DataTable>(BestSolutionQualityValuesParameterName));
    232236      Parameters.Add(new LookupParameter<DataTable>(VariableFrequenciesParameterName, "The variable frequencies table to use for the calculation of variable impacts"));
    233237    }
     
    244248      if (!Parameters.ContainsKey(MaximizationParameterName)) {
    245249        Parameters.Add(new LookupParameter<BoolValue>(MaximizationParameterName, "The direction of optimization."));
     250      }
     251      if (!Parameters.ContainsKey(BestSolutionQualityValuesParameterName)) {
     252        Parameters.Add(new LookupParameter<DataTable>(BestSolutionQualityValuesParameterName));
    246253      }
    247254      #endregion
     
    323330      AddValue(validationValues, BestSolutionQualityParameter.ActualValue.Value, BestSolutionQualityParameterName, BestSolutionQualityParameterName);
    324331      AddValue(validationValues, bestQuality, CurrentBestValidationQualityParameterName, CurrentBestValidationQualityParameterName);
     332
     333      BestSolutionQualityValuesParameter.ActualValue = validationValues;
     334     
    325335      return base.Apply();
    326336    }
Note: See TracChangeset for help on using the changeset viewer.