source: trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SymbolicRegressionPruningAnalyzer.cs @ 10368

Last change on this file since 10368 was 10368, checked in by bburlacu, 8 years ago

#2143: Implemented symbolic data analysis pruning operator and analyzers.

File size: 1.3 KB
Line 
1using System;
2using HeuristicLab.Common;
3using HeuristicLab.Core;
4using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
5using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
6
7namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Regression {
8  [Item("SymbolicRegressionPruningAnalyzer", "An analyzer that prunes introns from the population.")]
9  [StorableClass]
10  public sealed class SymbolicRegressionPruningAnalyzer : SymbolicDataAnalysisSingleObjectivePruningAnalyzer {
11    protected SymbolicRegressionPruningAnalyzer(SymbolicRegressionPruningAnalyzer original, Cloner cloner)
12      : base(original, cloner) {
13    }
14    public override IDeepCloneable Clone(Cloner cloner) {
15      return new SymbolicRegressionPruningAnalyzer(this, cloner);
16    }
17
18    public SymbolicRegressionPruningAnalyzer() {
19      impactValuesCalculator = new SymbolicRegressionSolutionImpactValuesCalculator();
20    }
21
22    protected override ISymbolicDataAnalysisModel CreateModel(ISymbolicExpressionTree tree,
23      ISymbolicDataAnalysisExpressionTreeInterpreter interpreter, double lowerEstimationLimit = Double.MinValue,
24      double upperEstimationLimit = Double.MaxValue) {
25      return new SymbolicRegressionModel(tree, interpreter, lowerEstimationLimit, upperEstimationLimit);
26    }
27  }
28}
Note: See TracBrowser for help on using the repository browser.