Free cookie consent management tool by TermsFeed Policy Generator

source: branches/Sliding Window GP/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SlidingWindow/SlidingWindowBestRegressionSolutionsCollection.cs @ 10396

Last change on this file since 10396 was 10396, checked in by bburlacu, 10 years ago

#1837: Introduced the SlidingWindowBestSolutionsCollectionView which shows how well each individual sliding window solution performs on the other portions of the training data.

File size: 1.6 KB
Line 
1
2using HeuristicLab.Common;
3using HeuristicLab.Core;
4using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
5using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
6
7namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Regression {
8  [StorableClass]
9  [Item("", "")]
10  public class SlidingWindowBestRegressionSolutionsCollection : SlidingWindowBestSolutionsCollection {
11    public SlidingWindowBestRegressionSolutionsCollection(SlidingWindowBestRegressionSolutionsCollection original, Cloner cloner)
12      : base(original, cloner) {
13    }
14    public override IDeepCloneable Clone(Cloner cloner) {
15      return new SlidingWindowBestRegressionSolutionsCollection(this, cloner);
16    }
17
18    public new IRegressionProblemData ProblemData {
19      get { return (IRegressionProblemData)base.ProblemData; }
20      set { base.ProblemData = value; }
21    }
22
23    public SlidingWindowBestRegressionSolutionsCollection() {
24
25    }
26
27    public override ISymbolicDataAnalysisModel CreateModel(ISymbolicExpressionTree tree, ISymbolicDataAnalysisExpressionTreeInterpreter interpreter,
28      double lowerEstimationLimit = double.MinValue, double upperEstimationLimit = double.MaxValue) {
29      return new SymbolicRegressionModel(tree, interpreter, lowerEstimationLimit, upperEstimationLimit);
30    }
31
32    public override ISymbolicDataAnalysisSolution CreateSolution(ISymbolicDataAnalysisModel model, IDataAnalysisProblemData problemData) {
33      return new SymbolicRegressionSolution((ISymbolicRegressionModel)model, (IRegressionProblemData)problemData);
34    }
35  }
36}
Note: See TracBrowser for help on using the repository browser.