Free cookie consent management tool by TermsFeed Policy Generator

Changeset 17925


Ignore:
Timestamp:
03/31/21 11:30:06 (3 years ago)
Author:
pfleck
Message:

#3107 Switched to the ClonedSymbolicExpressionTreeGrammar variable in the global scope instead of using the original grammar from the problem to avoid changing the original grammar.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3107_LearningALPS/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Creators/SymbolFrequencyReinitializationStrategyController.cs

    r17857 r17925  
    1515
    1616    private const string SymbolicExpressionTreeParameterName = "SymbolicExpressionTree";
    17     private const string SymbolicExpressionTreeGrammarParameterName = "SymbolicExpressionTreeGrammar";
     17    private const string SymbolicExpressionTreeGrammarParameterName = "ClonedSymbolicExpressionTreeGrammar";
    1818
    1919    #region Parameter Properties
     
    5353      var symbolFrequencies = SymbolicExpressionSymbolFrequencyAnalyzer.CalculateSymbolFrequencies(trees).ToDictionary(x => x.Key, x => x.Value);
    5454
    55       foreach(var s in grammar.AllowedSymbols) {
     55      foreach (var s in grammar.AllowedSymbols) {
    5656        if (s is ProgramRootSymbol || s is StartSymbol) {
    5757          continue;
Note: See TracChangeset for help on using the changeset viewer.