Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/06/17 10:22:27 (7 years ago)
Author:
gkronber
Message:

#2650: merged r14827, r14829:14832 from trunk to stable

Location:
stable/HeuristicLab.Tests/HeuristicLab-3.3/Samples
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • stable/HeuristicLab.Tests/HeuristicLab-3.3/Samples/GPSymbolicClassificationSampleTest.cs

    r14186 r15132  
    100100      grammar.ConfigureAsDefaultClassificationGrammar();
    101101      grammar.Symbols.OfType<VariableCondition>().Single().Enabled = false;
    102       var varSymbol = grammar.Symbols.OfType<Variable>().Where(x => !(x is LaggedVariable)).Single();
     102      foreach (var varSy in grammar.Symbols.OfType<VariableBase>()) varSy.VariableChangeProbability = 1.0; // for backwards compatibilty
     103      var varSymbol = grammar.Symbols.OfType<Variable>().Single();
    103104      varSymbol.WeightMu = 1.0;
    104105      varSymbol.WeightSigma = 1.0;
  • stable/HeuristicLab.Tests/HeuristicLab-3.3/Samples/GPSymbolicRegressionSampleTest.cs

    r14186 r15132  
    101101      grammar.ConfigureAsDefaultRegressionGrammar();
    102102      grammar.Symbols.OfType<VariableCondition>().Single().InitialFrequency = 0.0;
    103       var varSymbol = grammar.Symbols.OfType<Variable>().Where(x => !(x is LaggedVariable)).Single();
     103      foreach (var varSy in grammar.Symbols.OfType<VariableBase>()) varSy.VariableChangeProbability = 1.0; // for backwards compatibilty
     104      var varSymbol = grammar.Symbols.OfType<Variable>().Single();
    104105      varSymbol.WeightMu = 1.0;
    105106      varSymbol.WeightSigma = 1.0;
  • stable/HeuristicLab.Tests/HeuristicLab-3.3/Samples/GPTimeSeriesSampleTest.cs

    r14941 r15132  
    7474          autoRegressiveSymbol.MaxLag = -1;
    7575        }
     76        if (symbol is VariableBase) {
     77          var varSy = symbol as VariableBase;
     78          varSy.VariableChangeProbability = 1.0; // backwards compatibility
     79        }
    7680      }
    7781
Note: See TracChangeset for help on using the changeset viewer.