Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/21/22 11:51:56 (3 years ago)
Author:
dpiringe
Message:

#3136

  • changed visibility of string constants in TypeCoherentExpressionGrammar from private to public
  • changed default grammar for SubFunction
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3136_Structural_GP/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/StructureTemplate/SubFunction.cs

    r18199 r18205  
    4949    #region Constructors
    5050    public SubFunction() {
    51       Parameters.Add(new ValueParameter<ISymbolicDataAnalysisGrammar>(GrammarParameterName, new ArithmeticExpressionGrammar()));
     51      var grammar = new TypeCoherentExpressionGrammar();
     52      grammar.ConfigureAsDefaultRegressionGrammar();
     53      grammar.Symbols.First(s => s.Name == TypeCoherentExpressionGrammar.ExponentialFunctionsName).Enabled = false;
     54      Parameters.Add(new ValueParameter<ISymbolicDataAnalysisGrammar>(GrammarParameterName, grammar));
    5255      Parameters.Add(new FixedValueParameter<IntValue>(MaximumSymbolicExpressionTreeDepthParameterName, new IntValue(8)));
    5356      Parameters.Add(new FixedValueParameter<IntValue>(MaximumSymbolicExpressionTreeLengthParameterName, new IntValue(20)));
     
    7174    }
    7275    #endregion
    73 
    7476
    7577    #region Event Handling
Note: See TracChangeset for help on using the changeset viewer.