- Timestamp:
- 02/18/11 11:32:25 (14 years ago)
- Location:
- branches/DataAnalysis Refactoring
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/MultiObjective/SymbolicClassificationMultiObjectiveMeanSquaredErrorTreeSizeEvaluator.cs
r5505 r5514 42 42 public SymbolicClassificationMultiObjectiveMeanSquaredErrorTreeSizeEvaluator() : base() { } 43 43 44 public override IEnumerable<bool> Maximization { get { return new bool[2] { false, false }; } } 45 44 46 public override IOperation Apply() { 45 47 IEnumerable<int> rows = GenerateRowsToEvaluate(); 46 double[] qualities = Calculate(Symbolic ExpressionTreeInterpreterParameter.ActualValue, SymbolicExpressionTreeParameter.ActualValue, LowerEstimationLimit.Value, UpperEstimationLimit.Value, ProblemData, rows);48 double[] qualities = Calculate(SymbolicDataAnalysisTreeInterpreterParameter.ActualValue, SymbolicExpressionTreeParameter.ActualValue, LowerEstimationLimit.Value, UpperEstimationLimit.Value, ProblemData, rows); 47 49 QualitiesParameter.ActualValue = new DoubleArray(qualities); 48 50 return base.Apply(); -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/MultiObjective/SymbolicClassificationMultiObjectivePearsonRSquaredTreeSizeEvaluator.cs
r5505 r5514 21 21 public SymbolicClassificationMultiObjectivePearsonRSquaredTreeSizeEvaluator() : base() { } 22 22 23 public override IEnumerable<bool> Maximization { get { return new bool[2] { true, false }; } } 24 23 25 public override IOperation Apply() { 24 26 IEnumerable<int> rows = GenerateRowsToEvaluate(); 25 double[] qualities = Calculate(Symbolic ExpressionTreeInterpreterParameter.ActualValue, SymbolicExpressionTreeParameter.ActualValue, LowerEstimationLimit.Value, UpperEstimationLimit.Value, ProblemData, rows);27 double[] qualities = Calculate(SymbolicDataAnalysisTreeInterpreterParameter.ActualValue, SymbolicExpressionTreeParameter.ActualValue, LowerEstimationLimit.Value, UpperEstimationLimit.Value, ProblemData, rows); 26 28 QualitiesParameter.ActualValue = new DoubleArray(qualities); 27 29 return base.Apply(); -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SingleObjective/SymbolicClassificationSingleObjectiveMeanSquaredErrorEvaluator.cs
r5505 r5514 42 42 public SymbolicClassificationSingleObjectiveMeanSquaredErrorEvaluator() : base() { } 43 43 44 public override bool Maximization { get { return false; } } 45 44 46 public override IOperation Apply() { 45 47 IEnumerable<int> rows = GenerateRowsToEvaluate(); 46 double quality = Calculate(Symbolic ExpressionTreeInterpreterParameter.ActualValue, SymbolicExpressionTreeParameter.ActualValue, LowerEstimationLimit.Value, UpperEstimationLimit.Value, ProblemData, rows);48 double quality = Calculate(SymbolicDataAnalysisTreeInterpreterParameter.ActualValue, SymbolicExpressionTreeParameter.ActualValue, LowerEstimationLimit.Value, UpperEstimationLimit.Value, ProblemData, rows); 47 49 QualityParameter.ActualValue = new DoubleValue(quality); 48 50 return base.Apply(); -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SingleObjective/SymbolicClassificationSingleObjectivePearsonRSquaredEvaluator.cs
r5505 r5514 42 42 public SymbolicClassificationSingleObjectivePearsonRSquaredEvaluator() : base() { } 43 43 44 public override bool Maximization { get { return true; } } 45 44 46 public override IOperation Apply() { 45 47 IEnumerable<int> rows = GenerateRowsToEvaluate(); 46 double quality = Calculate(Symbolic ExpressionTreeInterpreterParameter.ActualValue, SymbolicExpressionTreeParameter.ActualValue, LowerEstimationLimit.Value, UpperEstimationLimit.Value, ProblemData, rows);48 double quality = Calculate(SymbolicDataAnalysisTreeInterpreterParameter.ActualValue, SymbolicExpressionTreeParameter.ActualValue, LowerEstimationLimit.Value, UpperEstimationLimit.Value, ProblemData, rows); 47 49 QualityParameter.ActualValue = new DoubleValue(quality); 48 50 return base.Apply(); -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/MultiObjective/SymbolicRegressionMultiObjectiveMeanSquaredErrorTreeSizeEvaluator.cs
r5505 r5514 42 42 public SymbolicRegressionMultiObjectiveMeanSquaredErrorSolutionSizeEvaluator() : base() { } 43 43 44 public override IEnumerable<bool> Maximization { get { return new bool[2] { false, false }; } } 45 44 46 public override Core.IOperation Apply() { 45 47 IEnumerable<int> rows = GenerateRowsToEvaluate(); 46 double[] qualities = Calculate(Symbolic ExpressionTreeInterpreterParameter.ActualValue, SymbolicExpressionTreeParameter.ActualValue, LowerEstimationLimit.Value, UpperEstimationLimit.Value, ProblemData, rows);48 double[] qualities = Calculate(SymbolicDataAnalysisTreeInterpreterParameter.ActualValue, SymbolicExpressionTreeParameter.ActualValue, LowerEstimationLimit.Value, UpperEstimationLimit.Value, ProblemData, rows); 47 49 QualitiesParameter.ActualValue = new DoubleArray(qualities); 48 50 return base.Apply(); -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/MultiObjective/SymbolicRegressionMultiObjectivePearsonRSquaredTreeSizeEvaluator.cs
r5505 r5514 42 42 public SymbolicRegressionMultiObjectivePearsonRSquaredTreeSizeEvaluator() : base() { } 43 43 44 public override IEnumerable<bool> Maximization { get { return new bool[2] { true, false }; } } 45 44 46 public override IOperation Apply() { 45 47 IEnumerable<int> rows = GenerateRowsToEvaluate(); 46 double[] qualities = Calculate(Symbolic ExpressionTreeInterpreterParameter.ActualValue, SymbolicExpressionTreeParameter.ActualValue, LowerEstimationLimit.Value, UpperEstimationLimit.Value, ProblemData, rows);48 double[] qualities = Calculate(SymbolicDataAnalysisTreeInterpreterParameter.ActualValue, SymbolicExpressionTreeParameter.ActualValue, LowerEstimationLimit.Value, UpperEstimationLimit.Value, ProblemData, rows); 47 49 QualitiesParameter.ActualValue = new DoubleArray(qualities); 48 50 return base.Apply(); -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/SymbolicRegressionSingleObjectiveMeanSquaredErrorEvaluator.cs
r5505 r5514 42 42 public SymbolicRegressionSingleObjectiveMeanSquaredErrorEvaluator() : base() { } 43 43 44 public override bool Maximization { get { return false; } } 45 44 46 public override IOperation Apply() { 45 47 IEnumerable<int> rows = GenerateRowsToEvaluate(); 46 double quality = Calculate(Symbolic ExpressionTreeInterpreterParameter.ActualValue, SymbolicExpressionTreeParameter.ActualValue, LowerEstimationLimit.Value, UpperEstimationLimit.Value, ProblemData, rows);48 double quality = Calculate(SymbolicDataAnalysisTreeInterpreterParameter.ActualValue, SymbolicExpressionTreeParameter.ActualValue, LowerEstimationLimit.Value, UpperEstimationLimit.Value, ProblemData, rows); 47 49 QualityParameter.ActualValue = new DoubleValue(quality); 48 50 return base.Apply(); -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/SymbolicRegressionSingleObjectivePearsonRSquaredEvaluator.cs
r5505 r5514 42 42 public SymbolicRegressionSingleObjectivePearsonRSquaredEvaluator() : base() { } 43 43 44 public override bool Maximization { get { return true; } } 45 44 46 public override IOperation Apply() { 45 47 IEnumerable<int> rows = GenerateRowsToEvaluate(); 46 double quality = Calculate(Symbolic ExpressionTreeInterpreterParameter.ActualValue, SymbolicExpressionTreeParameter.ActualValue, LowerEstimationLimit.Value, UpperEstimationLimit.Value, ProblemData, rows);48 double quality = Calculate(SymbolicDataAnalysisTreeInterpreterParameter.ActualValue, SymbolicExpressionTreeParameter.ActualValue, LowerEstimationLimit.Value, UpperEstimationLimit.Value, ProblemData, rows); 47 49 QualityParameter.ActualValue = new DoubleValue(quality); 48 50 return base.Apply(); -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Evaluators/SymbolicDataAnalysisEvaluator.cs
r5509 r5514 38 38 private const string RandomParameterName = "Random"; 39 39 private const string SymbolicExpressionTreeParameterName = "SymbolicExpressionTree"; 40 private const string Symbolic ExpressionTreeInterpreterParameterName = "SymbolicExpressionTreeInterpreter";40 private const string SymbolicDataAnalysisTreeInterpreterParameterName = "SymbolicExpressionTreeInterpreter"; 41 41 private const string ProblemDataParameterName = "ProblemData"; 42 42 private const string UpperEstimationLimitParameterName = "UpperEstimationLimit"; … … 47 47 48 48 #region parameter properties 49 public I LookupParameter<IRandom> RandomParameter {50 get { return (I LookupParameter<IRandom>)Parameters[RandomParameterName]; }49 public IValueLookupParameter<IRandom> RandomParameter { 50 get { return (IValueLookupParameter<IRandom>)Parameters[RandomParameterName]; } 51 51 } 52 52 public ILookupParameter<ISymbolicExpressionTree> SymbolicExpressionTreeParameter { 53 53 get { return (ILookupParameter<ISymbolicExpressionTree>)Parameters[SymbolicExpressionTreeParameterName]; } 54 54 } 55 public I LookupParameter<ISymbolicDataAnalysisTreeInterpreter> SymbolicExpressionTreeInterpreterParameter {56 get { return (I LookupParameter<ISymbolicDataAnalysisTreeInterpreter>)Parameters[SymbolicExpressionTreeInterpreterParameterName]; }55 public IValueLookupParameter<ISymbolicDataAnalysisTreeInterpreter> SymbolicDataAnalysisTreeInterpreterParameter { 56 get { return (IValueLookupParameter<ISymbolicDataAnalysisTreeInterpreter>)Parameters[SymbolicDataAnalysisTreeInterpreterParameterName]; } 57 57 } 58 public I LookupParameter<T> ProblemDataParameter {59 get { return (I LookupParameter<T>)Parameters[ProblemDataParameterName]; }58 public IValueLookupParameter<T> ProblemDataParameter { 59 get { return (IValueLookupParameter<T>)Parameters[ProblemDataParameterName]; } 60 60 } 61 61 … … 108 108 public SymbolicDataAnalysisEvaluator() 109 109 : base() { 110 Parameters.Add(new LookupParameter<IRandom>(RandomParameterName, "The random generator to use."));111 Parameters.Add(new LookupParameter<ISymbolicDataAnalysisTreeInterpreter>(SymbolicExpressionTreeInterpreterParameterName, "The interpreter that should be used to calculate the output values of the symbolic data analysis tree."));112 Parameters.Add(new LookupParameter<SymbolicExpressionTree>(Symbolic ExpressionTreeInterpreterParameterName, "The symbolic data analysis solution encoded as a symbolic expression tree."));113 Parameters.Add(new LookupParameter<T>(ProblemDataParameterName, "The problem data on which the symbolic data analysis solution should be evaluated."));110 Parameters.Add(new ValueLookupParameter<IRandom>(RandomParameterName, "The random generator to use.")); 111 Parameters.Add(new ValueLookupParameter<ISymbolicDataAnalysisTreeInterpreter>(SymbolicDataAnalysisTreeInterpreterParameterName, "The interpreter that should be used to calculate the output values of the symbolic data analysis tree.")); 112 Parameters.Add(new LookupParameter<SymbolicExpressionTree>(SymbolicDataAnalysisTreeInterpreterParameterName, "The symbolic data analysis solution encoded as a symbolic expression tree.")); 113 Parameters.Add(new ValueLookupParameter<T>(ProblemDataParameterName, "The problem data on which the symbolic data analysis solution should be evaluated.")); 114 114 Parameters.Add(new ValueLookupParameter<IntValue>(SamplesStartParameterName, "The start index of the dataset partition on which the symbolic data analysis solution should be evaluated.")); 115 115 Parameters.Add(new ValueLookupParameter<IntValue>(SamplesEndParameterName, "The end index of the dataset partition on which the symbolic data analysis solution should be evaluated.")); -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interfaces/ISymbolicDataAnalysisEvaluator.cs
r5509 r5514 25 25 public interface ISymbolicDataAnalysisEvaluator<T> : IDataAnalysisEvaluator<T> 26 26 where T : class, IDataAnalysisProblemData { 27 ILookupParameter< SymbolicExpressionTree> SymbolicExpressionTreeParameter { get; }27 ILookupParameter<ISymbolicExpressionTree> SymbolicExpressionTreeParameter { get; } 28 28 IValueLookupParameter<IntValue> SamplesStartParameter { get; } 29 29 IValueLookupParameter<IntValue> SamplesEndParameter { get; } -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interfaces/ISymbolicDataAnalysisGrammar.cs
r5495 r5514 23 23 24 24 namespace HeuristicLab.Problems.DataAnalysis.Symbolic { 25 public interface ISymbolicDataAnalysisGrammar : ISymbolicExpression Grammar {25 public interface ISymbolicDataAnalysisGrammar : ISymbolicExpressionTreeGrammar { 26 26 } 27 27 } -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interfaces/ISymbolicDataAnalysisInterpreterOperator.cs
r5500 r5514 24 24 namespace HeuristicLab.Problems.DataAnalysis.Symbolic { 25 25 public interface ISymbolicDataAnalysisInterpreterOperator : IOperator { 26 IValueLookupParameter<ISymbolicDataAnalysisTreeInterpreter> Interpreter;26 IValueLookupParameter<ISymbolicDataAnalysisTreeInterpreter> SymbolicDataAnalysisTreeInterpreterParameter { get; } 27 27 } 28 28 } -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interfaces/ISymbolicDataAnalysisModel.cs
r5507 r5514 23 23 namespace HeuristicLab.Problems.DataAnalysis.Symbolic { 24 24 public interface ISymbolicDataAnalysisModel : IDataAnalysisModel { 25 ISymbolicExpressionTree SymbolicExpressionTree ;26 ISymbolicDataAnalysisTreeInterpreter Interpreter ;25 ISymbolicExpressionTree SymbolicExpressionTree { get; } 26 ISymbolicDataAnalysisTreeInterpreter Interpreter { get; } 27 27 } 28 28 } -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interfaces/ISymbolicDataAnalysisProblem.cs
r5495 r5514 21 21 22 22 namespace HeuristicLab.Problems.DataAnalysis.Symbolic { 23 public interface ISymbolicDataAnalysisProblem : IDataAnalysisProblem { 23 public interface ISymbolicDataAnalysisProblem<T> : IDataAnalysisProblem<T> 24 where T : class, IDataAnalysisProblemData { 24 25 ISymbolicDataAnalysisGrammar Grammar { get; } 25 new ISymbolicDataAnalysisEvaluator Evaluator { get; }26 new ISymbolicDataAnalysisSolutionCreator SolutionCreator { get; }26 new ISymbolicDataAnalysisEvaluator<T> Evaluator { get; } 27 new ISymbolicDataAnalysisSolutionCreator<T> SolutionCreator { get; } 27 28 } 28 29 }
Note: See TracChangeset
for help on using the changeset viewer.