Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/08/11 10:08:29 (14 years ago)
Author:
mkommend
Message:

#1418: Added after deserialization hook to SymbolicExpressionSymbolFrequencyAnalyzer for newly added parameter.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Analyzers/SymbolicExpressionSymbolFrequencyAnalyzer.cs

    r5971 r5983  
    2525using HeuristicLab.Common;
    2626using HeuristicLab.Core;
     27using HeuristicLab.Data;
    2728using HeuristicLab.Operators;
    2829using HeuristicLab.Optimization;
    2930using HeuristicLab.Parameters;
    3031using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    31 using HeuristicLab.Data;
    3232
    3333namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding {
     
    7676    public override IDeepCloneable Clone(Cloner cloner) {
    7777      return new SymbolicExpressionSymbolFrequencyAnalyzer(this, cloner);
     78    }
     79
     80    [StorableHook(HookType.AfterDeserialization)]
     81    private void AfterDeserialization() {
     82      #region remove with HL 3.4
     83      if (!Parameters.ContainsKey(AggregateSymbolsWithDifferentSubtreeCountParameterName))
     84        Parameters.Add(new ValueParameter<BoolValue>(AggregateSymbolsWithDifferentSubtreeCountParameterName, "Flag that indicates if the frequencies of symbols with the same name but different number of sub-trees should be aggregated.", new BoolValue(true)));
     85      #endregion
    7886    }
    7987
Note: See TracChangeset for help on using the changeset viewer.