- Timestamp:
- 03/04/11 15:33:07 (14 years ago)
- Location:
- branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4
- Files:
-
- 3 added
- 9 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Analyzers/SymbolicDataAnalysisMultiObjectiveTrainingBestSolutionAnalyzer.cs
r5557 r5607 38 38 [StorableClass] 39 39 public abstract class SymbolicDataAnalysisMultiObjectiveTrainingBestSolutionAnalyzer<T> : SymbolicDataAnalysisMultiObjectiveAnalyzer 40 where T : class, I DataAnalysisSolution {40 where T : class, ISymbolicDataAnalysisSolution { 41 41 private const string TrainingBestSolutionsParameterName = "Best training solutions"; 42 42 private const string TrainingBestSolutionQualitiesParameterName = "Best training solution qualities"; … … 68 68 public SymbolicDataAnalysisMultiObjectiveTrainingBestSolutionAnalyzer() 69 69 : base() { 70 Parameters.Add(new LookupParameter<ItemList<T>>(TrainingBestSolutionsParameterName, "The training best (Pareto-optimal) symbolic data analy is solutions."));70 Parameters.Add(new LookupParameter<ItemList<T>>(TrainingBestSolutionsParameterName, "The training best (Pareto-optimal) symbolic data analysis solutions.")); 71 71 Parameters.Add(new LookupParameter<ItemList<DoubleArray>>(TrainingBestSolutionQualitiesParameterName, "The qualities of the training best (Pareto-optimal) solutions.")); 72 72 } -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Analyzers/SymbolicDataAnalysisSingleObjectiveTrainingBestSolutionAnalyzer.cs
r5557 r5607 38 38 [StorableClass] 39 39 public abstract class SymbolicDataAnalysisSingleObjectiveTrainingBestSolutionAnalyzer<T> : SymbolicDataAnalysisSingleObjectiveAnalyzer 40 where T : class, I DataAnalysisSolution {40 where T : class, ISymbolicDataAnalysisSolution { 41 41 private const string TrainingBestSolutionParameterName = "Best training solution"; 42 42 private const string TrainingBestSolutionQualityParameterName = "Best training solution quality"; … … 69 69 : base() { 70 70 Parameters.Add(new LookupParameter<T>(TrainingBestSolutionParameterName, "The training best symbolic data analyis solution.")); 71 Parameters.Add(new LookupParameter<DoubleValue>(TrainingBestSolutionQualityParameterName, "The quality of the training best symbolic data analy is solution."));71 Parameters.Add(new LookupParameter<DoubleValue>(TrainingBestSolutionQualityParameterName, "The quality of the training best symbolic data analysis solution.")); 72 72 } 73 73 -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Evaluators/SymbolicDataAnalysisEvaluator.cs
r5586 r5607 80 80 81 81 #region properties 82 public IRandom Random { 83 get { return RandomParameter.ActualValue; } 84 } 85 public ISymbolicExpressionTree SymbolicExpressionTree { 86 get { return SymbolicExpressionTreeParameter.ActualValue; } 87 } 88 public ISymbolicDataAnalysisTreeInterpreter SymbolicDataAnalysisTreeInterpreter { 89 get { return SymbolicDataAnalysisTreeInterpreterParameter.ActualValue; } 90 } 82 91 public T ProblemData { 83 92 get { return ProblemDataParameter.ActualValue; } 84 93 } 85 86 94 public IntValue SamplesStart { 87 95 get { return SamplesStartParameter.ActualValue; } -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Evaluators/SymbolicDataAnalysisMultiObjectiveEvaluator.cs
r5509 r5607 26 26 using HeuristicLab.Parameters; 27 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 28 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 28 29 29 30 namespace HeuristicLab.Problems.DataAnalysis.Symbolic { … … 47 48 Parameters.Add(new LookupParameter<DoubleArray>(QualitiesParameterName, "The qualities of the evaluated symbolic data analysis solution.")); 48 49 } 50 51 public abstract double[] Evaluate(IExecutionContext context, ISymbolicExpressionTree tree, Dataset dataset, IEnumerable<int> rows); 49 52 } 50 53 } -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Evaluators/SymbolicDataAnalysisSingleObjectiveEvaluator.cs
r5509 r5607 25 25 using HeuristicLab.Parameters; 26 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 27 using System.Collections.Generic; 28 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 27 29 28 30 namespace HeuristicLab.Problems.DataAnalysis.Symbolic { … … 30 32 where T : class, IDataAnalysisProblemData { 31 33 private const string QualityParameterName = "Quality"; 34 #region parameter properties 32 35 public ILookupParameter<DoubleValue> QualityParameter { 33 36 get { return (ILookupParameter<DoubleValue>)Parameters[QualityParameterName]; } 34 37 } 35 38 #endregion 39 #region properties 40 public DoubleValue Quality { 41 get { return QualityParameter.ActualValue; } 42 set { QualityParameter.ActualValue = value; } 43 } 36 44 public abstract bool Maximization { get; } 37 45 #endregion 38 46 [StorableConstructor] 39 47 protected SymbolicDataAnalysisSingleObjectiveEvaluator(bool deserializing) : base(deserializing) { } … … 46 54 Parameters.Add(new LookupParameter<DoubleValue>(QualityParameterName, "The quality of the evaluated symbolic data analysis solution.")); 47 55 } 56 57 58 public abstract double Evaluate(IExecutionContext context, ISymbolicExpressionTree tree, Dataset dataset, IEnumerable<int> rows); 48 59 } 49 60 } -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/HeuristicLab.Problems.DataAnalysis.Symbolic-3.4.csproj
r5580 r5607 108 108 </ItemGroup> 109 109 <ItemGroup> 110 <Compile Include="Analyzers\SymbolicDataAnalysisSingleObjectiveValidationBestSolutionAnalyzer.cs" /> 111 <Compile Include="Analyzers\SymbolicDataAnalysisValidationAnalyzer.cs" /> 110 112 <Compile Include="Analyzers\SymbolicDataAnalysisMultiObjectiveAnalyzer.cs" /> 111 113 <Compile Include="Analyzers\SymbolicDataAnalysisSingleObjectiveAnalyzer.cs" /> … … 116 118 </Compile> 117 119 <Compile Include="Analyzers\SymbolicDataAnalysisVariableFrequencyAnalyzer.cs" /> 120 <Compile Include="Interfaces\ISymbolicDataAnalysisValidationAnalyzer.cs" /> 118 121 <Compile Include="MultiObjectiveSymbolicDataAnalysisProblem.cs" /> 119 122 <Compile Include="Grammars\ArithmeticExpressionGrammar.cs" /> … … 122 125 <Compile Include="Interfaces\ISymbolicDataAnalysisMultiObjectiveAnalyzer.cs" /> 123 126 <Compile Include="Interfaces\ISymbolicDataAnalysisSingleObjectiveAnalyzer.cs" /> 124 <Compile Include="Interfaces\ISymbolicDataAnalysisValidatingAnalyzer.cs" />125 127 <Compile Include="Interfaces\ISymbolicDataAnalysisAnalyzer.cs" /> 126 128 <Compile Include="SingleObjectiveSymbolicDataAnalysisProblem.cs" /> 129 <Compile Include="SymbolicDataAnalysisSolution.cs" /> 127 130 <Compile Include="SymbolicDataAnalysisExpressionTreeInterpreter.cs" /> 128 131 <Compile Include="SymbolicDataAnalysisExpressionTreeSimplifier.cs" /> -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interfaces/ISymbolicDataAnalysisMultiObjectiveEvaluator.cs
r5577 r5607 23 23 using System.Collections.Generic; 24 24 using HeuristicLab.Optimization; 25 using HeuristicLab.Core; 26 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 25 27 26 28 namespace HeuristicLab.Problems.DataAnalysis.Symbolic { … … 28 30 where T : class,IDataAnalysisProblemData { 29 31 IEnumerable<bool> Maximization { get; } 32 double[] Evaluate(ExecutionContext context, ISymbolicExpressionTree tree, T problemData, IEnumerable<int> rows); 30 33 } 31 34 } -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interfaces/ISymbolicDataAnalysisSingleObjectiveEvaluator.cs
r5577 r5607 20 20 #endregion 21 21 22 23 22 using HeuristicLab.Optimization; 23 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 24 using System.Collections.Generic; 25 using HeuristicLab.Core; 24 26 namespace HeuristicLab.Problems.DataAnalysis.Symbolic { 25 27 public interface ISymbolicDataAnalysisSingleObjectiveEvaluator<T> : ISymbolicDataAnalysisEvaluator<T>, ISingleObjectiveEvaluator 26 28 where T : class,IDataAnalysisProblemData { 27 29 bool Maximization { get; } 30 31 double Evaluate(IExecutionContext context, ISymbolicExpressionTree tree, Dataset dataset, IEnumerable<int> rows); 28 32 } 29 33 } -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interfaces/ISymbolicDataAnalysisSolution.cs
r5495 r5607 21 21 22 22 23 namespace HeuristicLab.Problems.DataAnalysis.Symbolic .Interfaces{23 namespace HeuristicLab.Problems.DataAnalysis.Symbolic { 24 24 public interface ISymbolicDataAnalysisSolution : IDataAnalysisSolution { 25 25 new ISymbolicDataAnalysisModel Model { get; } -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interfaces/ISymbolicDataAnalysisValidationAnalyzer.cs
r5606 r5607 22 22 using HeuristicLab.Data; 23 23 namespace HeuristicLab.Problems.DataAnalysis.Symbolic { 24 public interface ISymbolicDataAnalysisValidati ngAnalyzer<T, U> : ISymbolicDataAnalysisAnalyzer24 public interface ISymbolicDataAnalysisValidationAnalyzer<T, U> : ISymbolicDataAnalysisAnalyzer 25 25 where T : class,ISymbolicDataAnalysisEvaluator<U> 26 26 where U : class, IDataAnalysisProblemData { 27 ILookupParameter<U> ProblemDataParameter { get; } 27 28 ILookupParameter<T> EvaluatorParameter { get; } 28 29 IValueLookupParameter<IntValue> ValidationSamplesStartParameter { get; }
Note: See TracChangeset
for help on using the changeset viewer.