Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/27/14 14:14:42 (11 years ago)
Author:
bburlacu
Message:

#1837: Added missing license information headers. Added storable constructors and changed properties in SlidingWindowBestSolutionsCollection to return IEnumerables instead of Lists.

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
     22using HeuristicLab.Common;
    223using HeuristicLab.Core;
    324using HeuristicLab.Optimization;
     
    1031    [StorableConstructor]
    1132    protected GenerationalRegressionSlidingWindowAnalyzer(bool deserializing) : base(deserializing) { }
     33    [StorableHook(HookType.AfterDeserialization)]
     34    private void AfterDeserialization() { }
    1235    protected GenerationalRegressionSlidingWindowAnalyzer(GenerationalRegressionSlidingWindowAnalyzer original, Cloner cloner)
    1336      : base(original, cloner) {
     
    1639      return new GenerationalRegressionSlidingWindowAnalyzer(this, cloner);
    1740    }
    18     [StorableHook(HookType.AfterDeserialization)]
    19     private void AfterDeserialization() {
    20     }
     41    public GenerationalRegressionSlidingWindowAnalyzer() { }
    2142    public override IOperation Apply() {
    2243      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
     22using HeuristicLab.Common;
    223using HeuristicLab.Core;
    324using HeuristicLab.Optimization;
     
    829  [Item("OffspringSelectionRegressionSlidingWindowAnalyzer", "")]
    930  public class OffspringSelectionRegressionSlidingWindowAnalyzer : OffspringSelectionSlidingWindowAnalyzer {
     31    [StorableConstructor]
     32    protected OffspringSelectionRegressionSlidingWindowAnalyzer(bool deserializing) : base(deserializing) { }
     33    [StorableHook(HookType.AfterDeserialization)]
     34    private void AfterDeserialization() { }
    1035    protected OffspringSelectionRegressionSlidingWindowAnalyzer(OffspringSelectionRegressionSlidingWindowAnalyzer original, Cloner cloner)
    1136      : base(original, cloner) {
     
    1439      return new OffspringSelectionRegressionSlidingWindowAnalyzer(this, cloner);
    1540    }
    16     [StorableConstructor]
    17     protected OffspringSelectionRegressionSlidingWindowAnalyzer(bool deserializing) : base(deserializing) { }
    1841    public OffspringSelectionRegressionSlidingWindowAnalyzer() { }
    19 
    20     [StorableHook(HookType.AfterDeserialization)]
    21     private void AfterDeserialization() {
    22     }
    23 
    2442    public override IOperation Apply() {
    2543      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
    222using HeuristicLab.Common;
    323using HeuristicLab.Core;
     
    727namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Regression {
    828  [StorableClass]
    9   [Item("", "")]
     29  [Item("SlidingWindowBestRegressionSolutionsCollection", "A collection of best sliding window solutions for symbolic regression.")]
    1030  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() { }
    1139    public SlidingWindowBestRegressionSolutionsCollection(SlidingWindowBestRegressionSolutionsCollection original, Cloner cloner)
    1240      : base(original, cloner) {
     
    1543      return new SlidingWindowBestRegressionSolutionsCollection(this, cloner);
    1644    }
    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() { }
    2746    public override ISymbolicDataAnalysisModel CreateModel(ISymbolicExpressionTree tree, ISymbolicDataAnalysisExpressionTreeInterpreter interpreter,
    2847      double lowerEstimationLimit = double.MinValue, double upperEstimationLimit = double.MaxValue) {
    2948      return new SymbolicRegressionModel(tree, interpreter, lowerEstimationLimit, upperEstimationLimit);
    3049    }
    31 
    3250    public override ISymbolicDataAnalysisSolution CreateSolution(ISymbolicDataAnalysisModel model, IDataAnalysisProblemData problemData) {
    3351      return new SymbolicRegressionSolution((ISymbolicRegressionModel)model, (IRegressionProblemData)problemData);
Note: See TracChangeset for help on using the changeset viewer.