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/Variable/DoubleVariable.cs

    r9392 r9467  
    112112    }
    113113
    114     // Important! If this mehtod is called instead of the more concrete "Randomize(IRandom random, double spreadPercentage)"
    115     // spread percentage is 50%
    116     public override void Randomize(IRandom random) {
    117       Randomize(random, 50);
     114    // this method is not implemented on purpose, because it may lead to confusion or errors if the wrong parameter would be used (changeSymbolProbability instead of spreadPercentage)
     115    public override void Randomize(IRandom random, double changeSymbolProbability) {
     116      throw new NotImplementedException("The method DoubleVariable.Randomize(IRandom, double) should not be used. Use DoubleVariable.Randomize(IRandom, double, double) instead.");
    118117    }
    119118
    120     public void Randomize(IRandom random, double spreadPercentage) {
     119    // changeSymbolProbability is not used on purpose
     120    public void Randomize(IRandom random, double changeSymbolProbability, double spreadPercentage) {
    121121      if (spreadPercentage < 0 || spreadPercentage > 100) {
    122122        throw new ArgumentException("Spread percentage has to be between 0 and 100.");
Note: See TracChangeset for help on using the changeset viewer.