Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/08/13 14:12:00 (11 years ago)
Author:
sforsten
Message:

#1980:

  • added ProportionalTournamentSelector for XCS
  • fixed bug: if an initial population is created in XCS, the initial population also creates general classifier, not only specific ones
  • merged r9204:9466 HeuristicLab.Core from trunk to branch
Location:
branches/LearningClassifierSystems
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/LearningClassifierSystems

  • branches/LearningClassifierSystems/HeuristicLab.Encodings.VariableVector/3.3/Creators/UniformRandomVariableVectorCreator.cs

    r9226 r9467  
    2222using HeuristicLab.Common;
    2323using HeuristicLab.Core;
     24using HeuristicLab.Data;
     25using HeuristicLab.Parameters;
    2426using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2527
     
    3032
    3133    #region Parameter Properties
     34    public ILookupParameter<PercentValue> ChangeSymbolProbabilityParameter {
     35      get { return (ILookupParameter<PercentValue>)Parameters["ChangeSymbolProbability"]; }
     36    }
    3237    #endregion
    3338
     
    3944    public UniformRandomVariableVectorCreator()
    4045      : base() {
     46        Parameters.Add(new LookupParameter<PercentValue>("ChangeSymbolProbability"));
    4147    }
    4248    public override IDeepCloneable Clone(Cloner cloner) {
     
    4652    protected override VariableVector Create(IRandom random, VariableVector sampleVariableVector, double spreadPercentage) {
    4753      var result = sampleVariableVector.GetEmptyCopy();
    48       result.Randomize(random, spreadPercentage);
     54      result.Randomize(random, ChangeSymbolProbabilityParameter.ActualValue.Value, spreadPercentage);
    4955      return result;
    5056    }
Note: See TracChangeset for help on using the changeset viewer.