Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/16/16 15:39:03 (8 years ago)
Author:
bburlacu
Message:

#1772: Fixed the way operator improvement is calculated so it also works when a diversification strategy is applied (introducing multiple intermediate vertices between parent and child). Minor code refactoring in the diversification operators. Fixed very small typo in the BeforeManipulatorOperator.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Tracking/SchemaDiversification/UpdateQualityOperator.cs

    r13526 r13527  
    3131
    3232namespace HeuristicLab.Problems.DataAnalysis.Symbolic {
    33   [Item("UpdateEstimatedValuesOperator", "Put the estimated values of the tree in the scope to be used by the phenotypic similarity calculator")]
     33  [Item("UpdateQualityOperator", "Put the estimated values of the tree in the scope to be used by the phenotypic similarity calculator")]
    3434  [StorableClass]
    35   public class UpdateEstimatedValuesOperator : EvolutionTrackingOperator<ISymbolicExpressionTree> {
     35  public class UpdateQualityOperator : EvolutionTrackingOperator<ISymbolicExpressionTree> {
    3636    private const string ProblemDataParameterName = "ProblemData";
    3737    private const string InterpreterParameterName = "SymbolicExpressionTreeInterpreter";
     
    5656    }
    5757
    58     public UpdateEstimatedValuesOperator() {
     58    public UpdateQualityOperator() {
    5959      Parameters.Add(new LookupParameter<IRegressionProblemData>(ProblemDataParameterName));
    6060      Parameters.Add(new LookupParameter<ISymbolicDataAnalysisExpressionTreeInterpreter>(InterpreterParameterName));
     
    6565
    6666    [StorableConstructor]
    67     protected UpdateEstimatedValuesOperator(bool deserializing) : base(deserializing) { }
     67    protected UpdateQualityOperator(bool deserializing) : base(deserializing) { }
    6868
    69     protected UpdateEstimatedValuesOperator(UpdateEstimatedValuesOperator original, Cloner cloner) : base(original, cloner) {
     69    protected UpdateQualityOperator(UpdateQualityOperator original, Cloner cloner) : base(original, cloner) {
    7070    }
    7171
    7272    public override IDeepCloneable Clone(Cloner cloner) {
    73       return new UpdateEstimatedValuesOperator(this, cloner);
     73      return new UpdateQualityOperator(this, cloner);
    7474    }
    7575
     
    110110
    111111      ((DoubleValue)variables["Quality"].Value).Value = r2;
     112      GenealogyGraph.GetByContent(tree).Quality = r2;
    112113
    113114      var scaleEstimatedValues = ScaleEstimatedValuesParameter.ActualValue;
Note: See TracChangeset for help on using the changeset viewer.