Last change
on this file since 10368 was
10368,
checked in by bburlacu, 10 years ago
|
#2143: Implemented symbolic data analysis pruning operator and analyzers.
|
File size:
1.3 KB
|
Line | |
---|
1 | using System;
|
---|
2 | using HeuristicLab.Common;
|
---|
3 | using HeuristicLab.Core;
|
---|
4 | using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
|
---|
5 | using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
|
---|
6 |
|
---|
7 | namespace 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.