Changeset 5624 for branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression
- Timestamp:
- 03/07/11 18:11:23 (14 years ago)
- 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 108 108 </ItemGroup> 109 109 <ItemGroup> 110 <Compile Include="SymbolicRegressionModel.cs" /> 110 111 <Compile Include="Interfaces\ISymbolicRegressionModel.cs" /> 111 112 <Compile Include="Interfaces\ISymbolicRegressionProblem.cs" /> -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/Interfaces/ISymbolicRegressionModel.cs
r5557 r5624 22 22 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 23 23 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Regression { 24 public interface ISymbolicRegressionModel : I SymbolicDataAnalysisModel {24 public interface ISymbolicRegressionModel : IRegressionModel, ISymbolicDataAnalysisModel { 25 25 } 26 26 } -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/Interfaces/ISymbolicRegressionSolution.cs
r5613 r5624 23 23 using HeuristicLab.Problems.DataAnalysis.Symbolic; 24 24 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Regression { 25 public interface ISymbolicRegressionSolution : I SymbolicDataAnalysisSolution {25 public interface ISymbolicRegressionSolution : IRegressionSolution, ISymbolicDataAnalysisSolution { 26 26 new ISymbolicRegressionModel Model { get; } 27 27 } -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/MultiObjective/SymbolicRegressionMultiObjectiveMeanSquaredErrorTreeSizeEvaluator.cs
r5613 r5624 51 51 } 52 52 53 public static double[] Calculate(ISymbolicDataAnalysis TreeInterpreter 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) { 54 54 IEnumerable<double> estimatedValues = interpreter.GetSymbolicExpressionTreeValues(solution, problemData.Dataset, rows); 55 55 IEnumerable<double> originalValues = problemData.Dataset.GetEnumeratedVariableValues(problemData.TargetVariable, rows); -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/MultiObjective/SymbolicRegressionMultiObjectivePearsonRSquaredTreeSizeEvaluator.cs
r5618 r5624 51 51 } 52 52 53 public static double[] Calculate(ISymbolicDataAnalysis TreeInterpreter 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) { 54 54 IEnumerable<double> estimatedValues = interpreter.GetSymbolicExpressionTreeValues(solution, problemData.Dataset, rows); 55 55 IEnumerable<double> originalValues = problemData.Dataset.GetEnumeratedVariableValues(problemData.TargetVariable, rows); -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/SymbolicRegressionSingleObjectiveMeanSquaredErrorEvaluator.cs
r5618 r5624 51 51 } 52 52 53 public static double Calculate(ISymbolicDataAnalysis TreeInterpreter 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) { 54 54 IEnumerable<double> estimatedValues = interpreter.GetSymbolicExpressionTreeValues(solution, problemData.Dataset, rows); 55 55 IEnumerable<double> originalValues = problemData.Dataset.GetEnumeratedVariableValues(problemData.TargetVariable, rows); -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/SymbolicRegressionSingleObjectivePearsonRSquaredEvaluator.cs
r5618 r5624 51 51 } 52 52 53 public static double Calculate(ISymbolicDataAnalysis TreeInterpreter 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) { 54 54 IEnumerable<double> estimatedValues = interpreter.GetSymbolicExpressionTreeValues(solution, problemData.Dataset, rows); 55 55 IEnumerable<double> originalValues = problemData.Dataset.GetEnumeratedVariableValues(problemData.TargetVariable, rows); -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SymbolicRegressionSolution.cs
r5607 r5624 32 32 using System; 33 33 34 namespace HeuristicLab.Problems.DataAnalysis.Symbolic {34 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Regression { 35 35 /// <summary> 36 36 /// Represents a symbolic regression solution (model + data) and attributes of the solution like accuracy and complexity … … 38 38 [StorableClass] 39 39 [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; } 44 45 } 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; } 64 48 } 65 49 … … 71 55 : base(original, cloner) { 72 56 } 73 public SymbolicRegressionSolution( )74 : base( ) {57 public SymbolicRegressionSolution(ISymbolicRegressionModel model, IRegressionProblemData problemData) 58 : base(model, problemData) { 75 59 } 76 60 … … 78 62 return new SymbolicRegressionSolution(this, cloner); 79 63 } 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 }88 64 } 89 65 }
Note: See TracChangeset
for help on using the changeset viewer.