Changeset 18205 for branches/3136_Structural_GP/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/StructureTemplate
- Timestamp:
- 01/21/22 11:51:56 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3136_Structural_GP/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/StructureTemplate/SubFunction.cs
r18199 r18205 49 49 #region Constructors 50 50 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)); 52 55 Parameters.Add(new FixedValueParameter<IntValue>(MaximumSymbolicExpressionTreeDepthParameterName, new IntValue(8))); 53 56 Parameters.Add(new FixedValueParameter<IntValue>(MaximumSymbolicExpressionTreeLengthParameterName, new IntValue(20))); … … 71 74 } 72 75 #endregion 73 74 76 75 77 #region Event Handling
Note: See TracChangeset
for help on using the changeset viewer.