Changeset 10402 for branches/Sliding Window GP/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression
- Timestamp:
- 01/27/14 14:14:42 (11 years ago)
- Location:
- branches/Sliding Window GP/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SlidingWindow
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Sliding Window GP/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SlidingWindow/GenerationalRegressionSlidingWindowAnalyzer.cs
r10396 r10402 1 using HeuristicLab.Common; 1 #region License Information 2 /* HeuristicLab 3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 * 5 * This file is part of HeuristicLab. 6 * 7 * HeuristicLab is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation, either version 3 of the License, or 10 * (at your option) any later version. 11 * 12 * HeuristicLab is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>. 19 */ 20 #endregion 21 22 using HeuristicLab.Common; 2 23 using HeuristicLab.Core; 3 24 using HeuristicLab.Optimization; … … 10 31 [StorableConstructor] 11 32 protected GenerationalRegressionSlidingWindowAnalyzer(bool deserializing) : base(deserializing) { } 33 [StorableHook(HookType.AfterDeserialization)] 34 private void AfterDeserialization() { } 12 35 protected GenerationalRegressionSlidingWindowAnalyzer(GenerationalRegressionSlidingWindowAnalyzer original, Cloner cloner) 13 36 : base(original, cloner) { … … 16 39 return new GenerationalRegressionSlidingWindowAnalyzer(this, cloner); 17 40 } 18 [StorableHook(HookType.AfterDeserialization)] 19 private void AfterDeserialization() { 20 } 41 public GenerationalRegressionSlidingWindowAnalyzer() { } 21 42 public override IOperation Apply() { 22 43 if (!ResultCollection.ContainsKey("Best Solutions")) { -
branches/Sliding Window GP/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SlidingWindow/OffspringSelectionRegressionSlidingWindowAnalyzer.cs
r10396 r10402 1 using HeuristicLab.Common; 1 #region License Information 2 /* HeuristicLab 3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 * 5 * This file is part of HeuristicLab. 6 * 7 * HeuristicLab is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation, either version 3 of the License, or 10 * (at your option) any later version. 11 * 12 * HeuristicLab is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>. 19 */ 20 #endregion 21 22 using HeuristicLab.Common; 2 23 using HeuristicLab.Core; 3 24 using HeuristicLab.Optimization; … … 8 29 [Item("OffspringSelectionRegressionSlidingWindowAnalyzer", "")] 9 30 public class OffspringSelectionRegressionSlidingWindowAnalyzer : OffspringSelectionSlidingWindowAnalyzer { 31 [StorableConstructor] 32 protected OffspringSelectionRegressionSlidingWindowAnalyzer(bool deserializing) : base(deserializing) { } 33 [StorableHook(HookType.AfterDeserialization)] 34 private void AfterDeserialization() { } 10 35 protected OffspringSelectionRegressionSlidingWindowAnalyzer(OffspringSelectionRegressionSlidingWindowAnalyzer original, Cloner cloner) 11 36 : base(original, cloner) { … … 14 39 return new OffspringSelectionRegressionSlidingWindowAnalyzer(this, cloner); 15 40 } 16 [StorableConstructor]17 protected OffspringSelectionRegressionSlidingWindowAnalyzer(bool deserializing) : base(deserializing) { }18 41 public OffspringSelectionRegressionSlidingWindowAnalyzer() { } 19 20 [StorableHook(HookType.AfterDeserialization)]21 private void AfterDeserialization() {22 }23 24 42 public override IOperation Apply() { 25 43 if (!ResultCollection.ContainsKey("Best Solutions")) { -
branches/Sliding Window GP/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SlidingWindow/SlidingWindowBestRegressionSolutionsCollection.cs
r10396 r10402 1 1 #region License Information 2 /* HeuristicLab 3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 * 5 * This file is part of HeuristicLab. 6 * 7 * HeuristicLab is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation, either version 3 of the License, or 10 * (at your option) any later version. 11 * 12 * HeuristicLab is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>. 19 */ 20 #endregion 21 2 22 using HeuristicLab.Common; 3 23 using HeuristicLab.Core; … … 7 27 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Regression { 8 28 [StorableClass] 9 [Item(" ", "")]29 [Item("SlidingWindowBestRegressionSolutionsCollection", "A collection of best sliding window solutions for symbolic regression.")] 10 30 public class SlidingWindowBestRegressionSolutionsCollection : SlidingWindowBestSolutionsCollection { 31 public new IRegressionProblemData ProblemData { 32 get { return (IRegressionProblemData)base.ProblemData; } 33 set { base.ProblemData = value; } 34 } 35 [StorableConstructor] 36 protected SlidingWindowBestRegressionSolutionsCollection(bool deserializing) : base(deserializing) { } 37 [StorableHook(HookType.AfterDeserialization)] 38 private void AfterDeserialization() { } 11 39 public SlidingWindowBestRegressionSolutionsCollection(SlidingWindowBestRegressionSolutionsCollection original, Cloner cloner) 12 40 : base(original, cloner) { … … 15 43 return new SlidingWindowBestRegressionSolutionsCollection(this, cloner); 16 44 } 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 45 public SlidingWindowBestRegressionSolutionsCollection() { } 27 46 public override ISymbolicDataAnalysisModel CreateModel(ISymbolicExpressionTree tree, ISymbolicDataAnalysisExpressionTreeInterpreter interpreter, 28 47 double lowerEstimationLimit = double.MinValue, double upperEstimationLimit = double.MaxValue) { 29 48 return new SymbolicRegressionModel(tree, interpreter, lowerEstimationLimit, upperEstimationLimit); 30 49 } 31 32 50 public override ISymbolicDataAnalysisSolution CreateSolution(ISymbolicDataAnalysisModel model, IDataAnalysisProblemData problemData) { 33 51 return new SymbolicRegressionSolution((ISymbolicRegressionModel)model, (IRegressionProblemData)problemData);
Note: See TracChangeset
for help on using the changeset viewer.