- Timestamp:
- 05/04/15 13:08:49 (10 years ago)
- Location:
- branches/GBT
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GBT
- Property svn:mergeinfo changed
/trunk/sources (added) merged: 12333,12358-12361,12365
- Property svn:mergeinfo changed
-
branches/GBT/HeuristicLab.Encodings.BinaryVectorEncoding
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Encodings.BinaryVectorEncoding (added) merged: 12333
- Property svn:mergeinfo changed
-
branches/GBT/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Creators/RandomBinaryVectorCreator.cs
r12012 r12378 34 34 [StorableClass] 35 35 public sealed class RandomBinaryVectorCreator : BinaryVectorCreator { 36 private const string TrueProbabilityParameterName = "TruePro pability";36 private const string TrueProbabilityParameterName = "TrueProbability"; 37 37 38 38 private IValueLookupParameter<DoubleValue> TrueProbabilityParameter { … … 59 59 #region Backwards compatible code, remove with 3.4 60 60 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); 64 65 } 65 66 if (!Parameters.ContainsKey(TrueProbabilityParameterName))
Note: See TracChangeset
for help on using the changeset viewer.