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.2 KB
|
Line | |
---|
1 | using HeuristicLab.Common;
|
---|
2 | using HeuristicLab.Core;
|
---|
3 | using HeuristicLab.Optimization;
|
---|
4 | using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
|
---|
5 |
|
---|
6 | namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Regression {
|
---|
7 | [StorableClass]
|
---|
8 | [Item("Generational Regression Sliding Window Analyzer", "")]
|
---|
9 | public class GenerationalRegressionSlidingWindowAnalyzer : GenerationalSlidingWindowAnalyzer {
|
---|
10 | [StorableConstructor]
|
---|
11 | protected GenerationalRegressionSlidingWindowAnalyzer(bool deserializing) : base(deserializing) { }
|
---|
12 | protected GenerationalRegressionSlidingWindowAnalyzer(GenerationalRegressionSlidingWindowAnalyzer original, Cloner cloner)
|
---|
13 | : base(original, cloner) {
|
---|
14 | }
|
---|
15 | public override IDeepCloneable Clone(Cloner cloner) {
|
---|
16 | return new GenerationalRegressionSlidingWindowAnalyzer(this, cloner);
|
---|
17 | }
|
---|
18 | [StorableHook(HookType.AfterDeserialization)]
|
---|
19 | private void AfterDeserialization() {
|
---|
20 | }
|
---|
21 | public override IOperation Apply() {
|
---|
22 | if (!ResultCollection.ContainsKey("Best Solutions")) {
|
---|
23 | ResultCollection.Add(new Result("Best Solutions", new SlidingWindowBestRegressionSolutionsCollection()));
|
---|
24 | }
|
---|
25 | return base.Apply();
|
---|
26 | }
|
---|
27 | }
|
---|
28 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.