Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/07/11 18:11:23 (14 years ago)
Author:
gkronber
Message:

#1418 renamed interface for interpreter, worked on solutions and models and implemented SVM regression.

Location:
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4
Files:
1 added
8 edited

Legend:

Unmodified
Added
Removed
  • branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression-3.4.csproj

    r5618 r5624  
    108108  </ItemGroup>
    109109  <ItemGroup>
     110    <Compile Include="SymbolicRegressionModel.cs" />
    110111    <Compile Include="Interfaces\ISymbolicRegressionModel.cs" />
    111112    <Compile Include="Interfaces\ISymbolicRegressionProblem.cs" />
  • branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/Interfaces/ISymbolicRegressionModel.cs

    r5557 r5624  
    2222using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
    2323namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Regression {
    24   public interface ISymbolicRegressionModel : ISymbolicDataAnalysisModel {
     24  public interface ISymbolicRegressionModel : IRegressionModel, ISymbolicDataAnalysisModel {
    2525  }
    2626}
  • branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/Interfaces/ISymbolicRegressionSolution.cs

    r5613 r5624  
    2323using HeuristicLab.Problems.DataAnalysis.Symbolic;
    2424namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Regression {
    25   public interface ISymbolicRegressionSolution : ISymbolicDataAnalysisSolution {
     25  public interface ISymbolicRegressionSolution : IRegressionSolution, ISymbolicDataAnalysisSolution {
    2626    new ISymbolicRegressionModel Model { get; }
    2727  }
  • branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/MultiObjective/SymbolicRegressionMultiObjectiveMeanSquaredErrorTreeSizeEvaluator.cs

    r5613 r5624  
    5151    }
    5252
    53     public static double[] Calculate(ISymbolicDataAnalysisTreeInterpreter interpreter, ISymbolicExpressionTree solution, double lowerEstimationLimit, double upperEstimationLimit, IRegressionProblemData problemData, IEnumerable<int> rows) {
     53    public static double[] Calculate(ISymbolicDataAnalysisExpressionTreeInterpreter interpreter, ISymbolicExpressionTree solution, double lowerEstimationLimit, double upperEstimationLimit, IRegressionProblemData problemData, IEnumerable<int> rows) {
    5454      IEnumerable<double> estimatedValues = interpreter.GetSymbolicExpressionTreeValues(solution, problemData.Dataset, rows);
    5555      IEnumerable<double> originalValues = problemData.Dataset.GetEnumeratedVariableValues(problemData.TargetVariable, rows);
  • branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/MultiObjective/SymbolicRegressionMultiObjectivePearsonRSquaredTreeSizeEvaluator.cs

    r5618 r5624  
    5151    }
    5252
    53     public static double[] Calculate(ISymbolicDataAnalysisTreeInterpreter interpreter, ISymbolicExpressionTree solution, double lowerEstimationLimit, double upperEstimationLimit, IRegressionProblemData problemData, IEnumerable<int> rows) {
     53    public static double[] Calculate(ISymbolicDataAnalysisExpressionTreeInterpreter interpreter, ISymbolicExpressionTree solution, double lowerEstimationLimit, double upperEstimationLimit, IRegressionProblemData problemData, IEnumerable<int> rows) {
    5454      IEnumerable<double> estimatedValues = interpreter.GetSymbolicExpressionTreeValues(solution, problemData.Dataset, rows);
    5555      IEnumerable<double> originalValues = problemData.Dataset.GetEnumeratedVariableValues(problemData.TargetVariable, rows);
  • branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/SymbolicRegressionSingleObjectiveMeanSquaredErrorEvaluator.cs

    r5618 r5624  
    5151    }
    5252
    53     public static double Calculate(ISymbolicDataAnalysisTreeInterpreter interpreter, ISymbolicExpressionTree solution, double lowerEstimationLimit, double upperEstimationLimit, IRegressionProblemData problemData, IEnumerable<int> rows) {
     53    public static double Calculate(ISymbolicDataAnalysisExpressionTreeInterpreter interpreter, ISymbolicExpressionTree solution, double lowerEstimationLimit, double upperEstimationLimit, IRegressionProblemData problemData, IEnumerable<int> rows) {
    5454      IEnumerable<double> estimatedValues = interpreter.GetSymbolicExpressionTreeValues(solution, problemData.Dataset, rows);
    5555      IEnumerable<double> originalValues = problemData.Dataset.GetEnumeratedVariableValues(problemData.TargetVariable, rows);
  • branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/SymbolicRegressionSingleObjectivePearsonRSquaredEvaluator.cs

    r5618 r5624  
    5151    }
    5252
    53     public static double Calculate(ISymbolicDataAnalysisTreeInterpreter interpreter, ISymbolicExpressionTree solution, double lowerEstimationLimit, double upperEstimationLimit, IRegressionProblemData problemData, IEnumerable<int> rows) {
     53    public static double Calculate(ISymbolicDataAnalysisExpressionTreeInterpreter interpreter, ISymbolicExpressionTree solution, double lowerEstimationLimit, double upperEstimationLimit, IRegressionProblemData problemData, IEnumerable<int> rows) {
    5454      IEnumerable<double> estimatedValues = interpreter.GetSymbolicExpressionTreeValues(solution, problemData.Dataset, rows);
    5555      IEnumerable<double> originalValues = problemData.Dataset.GetEnumeratedVariableValues(problemData.TargetVariable, rows);
  • branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SymbolicRegressionSolution.cs

    r5607 r5624  
    3232using System;
    3333
    34 namespace HeuristicLab.Problems.DataAnalysis.Symbolic {
     34namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Regression {
    3535  /// <summary>
    3636  /// Represents a symbolic regression solution (model + data) and attributes of the solution like accuracy and complexity
     
    3838  [StorableClass]
    3939  [Item(Name = "SymbolicRegressionSolution", Description = "Represents a symbolic regression solution (model + data) and attributes of the solution like accuracy and complexity.")]
    40   public class SymbolicRegressionSolution : SymbolicDataAnalysisSolution, IRegressionSolution {
    41     #region properties
    42     public new IRegressionModel Model {
    43       get { throw new NotImplementedException(); }
     40  public class SymbolicRegressionSolution : RegressionSolution, ISymbolicRegressionSolution {
     41    #region ISymbolicRegressionSolution Members
     42
     43    public new ISymbolicRegressionModel Model {
     44      get { return (ISymbolicRegressionModel)base.Model; }
    4445    }
    45 
    46     public new IRegressionProblemData ProblemData {
    47       get { throw new NotImplementedException(); }
    48     }
    49 
    50     public IEnumerable<double> EstimatedValues {
    51       get { throw new NotImplementedException(); }
    52     }
    53 
    54     public IEnumerable<double> EstimatedTrainingValues {
    55       get { throw new NotImplementedException(); }
    56     }
    57 
    58     public IEnumerable<double> EstimatedTestValues {
    59       get { throw new NotImplementedException(); }
    60     }
    61 
    62     public IEnumerable<double> GetEstimatedValues(IEnumerable<int> rows) {
    63       throw new NotImplementedException();
     46    ISymbolicDataAnalysisModel ISymbolicDataAnalysisSolution.Model {
     47      get { return (ISymbolicDataAnalysisModel)base.Model; }
    6448    }
    6549
     
    7155      : base(original, cloner) {
    7256    }
    73     public SymbolicRegressionSolution()
    74       : base() {
     57    public SymbolicRegressionSolution(ISymbolicRegressionModel model, IRegressionProblemData problemData)
     58      : base(model, problemData) {
    7559    }
    7660
     
    7862      return new SymbolicRegressionSolution(this, cloner);
    7963    }
    80 
    81     protected override void OnModelChanged(EventArgs e) {
    82       base.OnModelChanged(e);
    83     }
    84 
    85     protected override void OnProblemDataChanged(EventArgs e) {
    86       base.OnProblemDataChanged(e);
    87     }
    8864  }
    8965}
Note: See TracChangeset for help on using the changeset viewer.