Free cookie consent management tool by TermsFeed Policy Generator

Changeset 7280


Ignore:
Timestamp:
01/05/12 16:25:22 (13 years ago)
Author:
mkommend
Message:

#1722: Corrected AfterDeserializationHook in SymbolicExpressionTreeLengthAnalyzer.

File:
1 edited

Legend:

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

    r7259 r7280  
    121121        Parameters.Add(new ValueParameter<IntValue>(UpdateIntervalParameterName, "The interval in which the tree length analysis should be applied.", new IntValue(1)));
    122122      }
     123      //necessary code to correct UpdateCounterParameter - type was changed from LookupParameter to ValueParameter
     124      if (Parameters.ContainsKey(UpdateCounterParameterName) && (Parameters[UpdateCounterParameterName] is LookupParameter<IntValue>))
     125        Parameters.Remove(UpdateCounterParameterName);
    123126      if (!Parameters.ContainsKey(UpdateCounterParameterName)) {
    124127        Parameters.Add(new ValueParameter<IntValue>(UpdateCounterParameterName, "The value which counts how many times the operator was called since the last update", new IntValue(0)));
Note: See TracChangeset for help on using the changeset viewer.