Free cookie consent management tool by TermsFeed Policy Generator

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

Last change on this file since 18095 was 18095, checked in by dpiringe, 2 years ago

#3136

  • added a Evaluate method, which uses the static method Calculate and evaluates a ISymbolicExpressionTree without the need of an ExecutionContext
    • implemented this new method in all single objective SymReg evaluators
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      IRegressionProblemData problemData,
36      ISymbolicExpressionTree tree,
37      ISymbolicDataAnalysisExpressionTreeInterpreter interpreter,
38      IEnumerable<int> rows = null,
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.