Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/04/15 13:08:49 (10 years ago)
Author:
gkronber
Message:

Merged revision(s) 12333-12365 from trunk/sources:
#2373: Corrected typo in RandomBinaryVectorCreator by implementing an after-deserialization-hook.

........
#2359: Refactored pruning operators and analyzers.

........
#2359: Removed commented code from pruning analyzer.

........
#2378: Vertex.cs: Fixed bug in Label setter.
........
#2359: The changes in r12358 look fine to me. Added total number of pruned nodes in the analyzer's data table. Removed unused parameter names in the SymbolicDataAnalysisSingleObjectivePruningAnalyzer.
........
#2345: Fixed x-axis maximum in error characteristics curve.

........

Location:
branches/GBT
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/GBT

  • branches/GBT/HeuristicLab.Encodings.BinaryVectorEncoding

  • branches/GBT/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Creators/RandomBinaryVectorCreator.cs

    r12012 r12378  
    3434  [StorableClass]
    3535  public sealed class RandomBinaryVectorCreator : BinaryVectorCreator {
    36     private const string TrueProbabilityParameterName = "TruePropability";
     36    private const string TrueProbabilityParameterName = "TrueProbability";
    3737
    3838    private IValueLookupParameter<DoubleValue> TrueProbabilityParameter {
     
    5959      #region Backwards compatible code, remove with 3.4
    6060      var defaultValue = 0.5;
    61       if (Parameters.ContainsKey(TrueProbabilityParameterName) && Parameters[TrueProbabilityParameterName] is IFixedValueParameter<DoubleValue>) {
    62         defaultValue = ((IFixedValueParameter<DoubleValue>)Parameters[TrueProbabilityParameterName]).Value.Value;
    63         Parameters.Remove(TrueProbabilityParameterName);
     61      const string parameterNameWithTypo = "TruePropability";
     62      if (Parameters.ContainsKey(parameterNameWithTypo) && Parameters[parameterNameWithTypo] is IValueParameter<DoubleValue>) {
     63        defaultValue = ((IValueParameter<DoubleValue>)Parameters[parameterNameWithTypo]).Value.Value;
     64        Parameters.Remove(parameterNameWithTypo);
    6465      }
    6566      if (!Parameters.ContainsKey(TrueProbabilityParameterName))
Note: See TracChangeset for help on using the changeset viewer.