source: branches/3136_Structural_GP/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/Evaluators/SymbolicRegressionSingleObjectiveEvaluator.cs @ 18103

Last change on this file since 18103 was 18103, checked in by dpiringe, 8 months ago

#3136

  • refactor the evaluation logic of NMSESingleObjectiveConstraintsEvaluator
  • refactor the new method Evaluate for PearsonRSquaredAverageSimilarityEvaluator
  • change the parameter order of some evaluate/calculate methods
File size: 2.0 KB
Line 
1#region License Information
2/* HeuristicLab
3 * Copyright (C) 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;
23using HEAL.Attic;
24using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
25using System.Collections.Generic;
26
27namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Regression {
28  [StorableType("7EB90F03-4385-474F-BDE7-3B133E8FEAAB")]
29  public abstract class SymbolicRegressionSingleObjectiveEvaluator : SymbolicDataAnalysisSingleObjectiveEvaluator<IRegressionProblemData>, ISymbolicRegressionSingleObjectiveEvaluator { 
30    [StorableConstructor]
31    protected SymbolicRegressionSingleObjectiveEvaluator(StorableConstructorFlag _) : base(_) { }
32    protected SymbolicRegressionSingleObjectiveEvaluator(SymbolicRegressionSingleObjectiveEvaluator original, Cloner cloner) : base(original, cloner) { }
33    protected SymbolicRegressionSingleObjectiveEvaluator(): base() {}
34    public abstract double Evaluate(
35      ISymbolicExpressionTree tree,
36      IRegressionProblemData problemData,
37      IEnumerable<int> rows,
38      ISymbolicDataAnalysisExpressionTreeInterpreter interpreter,
39      bool applyLinearScaling = true,
40      double lowerEstimationLimit = double.MinValue,
41      double upperEstimationLimit = double.MaxValue);
42  }
43}
Note: See TracBrowser for help on using the repository browser.