- Timestamp:
- 03/07/16 10:18:05 (9 years ago)
- Location:
- branches/WebJobManager
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/WebJobManager/HeuristicLab.Problems.GrammaticalEvolution/3.4/SymbolicRegression/GESymbolicDataAnalysisProblem.cs
r12012 r13656 24 24 25 25 using System; 26 using System.Drawing;27 26 using System.Linq; 28 27 using HeuristicLab.Common; 29 using HeuristicLab.Common.Resources;30 28 using HeuristicLab.Core; 31 29 using HeuristicLab.Data; … … 74 72 75 73 #region parameter properties 76 IParameter IDataAnalysisProblem.ProblemDataParameter { 74 IParameter IDataAnalysisProblem.ProblemDataParameter 75 { 77 76 get { return ProblemDataParameter; } 78 77 } 79 public IValueParameter<T> ProblemDataParameter { 78 public IValueParameter<T> ProblemDataParameter 79 { 80 80 get { return (IValueParameter<T>)Parameters[ProblemDataParameterName]; } 81 81 } 82 public IValueParameter<ISymbolicDataAnalysisGrammar> SymbolicExpressionTreeGrammarParameter { 82 public IValueParameter<ISymbolicDataAnalysisGrammar> SymbolicExpressionTreeGrammarParameter 83 { 83 84 get { return (IValueParameter<ISymbolicDataAnalysisGrammar>)Parameters[SymbolicExpressionTreeGrammarParameterName]; } 84 85 } 85 public IValueParameter<ISymbolicDataAnalysisExpressionTreeInterpreter> SymbolicExpressionTreeInterpreterParameter { 86 public IValueParameter<ISymbolicDataAnalysisExpressionTreeInterpreter> SymbolicExpressionTreeInterpreterParameter 87 { 86 88 get { return (IValueParameter<ISymbolicDataAnalysisExpressionTreeInterpreter>)Parameters[SymbolicExpressionTreeInterpreterParameterName]; } 87 89 } 88 public IFixedValueParameter<IntValue> MaximumSymbolicExpressionTreeLengthParameter { 90 public IFixedValueParameter<IntValue> MaximumSymbolicExpressionTreeLengthParameter 91 { 89 92 get { return (IFixedValueParameter<IntValue>)Parameters[MaximumSymbolicExpressionTreeLengthParameterName]; } 90 93 } 91 public IFixedValueParameter<PercentValue> RelativeNumberOfEvaluatedSamplesParameter { 94 public IFixedValueParameter<PercentValue> RelativeNumberOfEvaluatedSamplesParameter 95 { 92 96 get { return (IFixedValueParameter<PercentValue>)Parameters[RelativeNumberOfEvaluatedSamplesParameterName]; } 93 97 } 94 public IFixedValueParameter<IntRange> FitnessCalculationPartitionParameter { 98 public IFixedValueParameter<IntRange> FitnessCalculationPartitionParameter 99 { 95 100 get { return (IFixedValueParameter<IntRange>)Parameters[FitnessCalculationPartitionParameterName]; } 96 101 } 97 public IFixedValueParameter<IntRange> ValidationPartitionParameter { 102 public IFixedValueParameter<IntRange> ValidationPartitionParameter 103 { 98 104 get { return (IFixedValueParameter<IntRange>)Parameters[ValidationPartitionParameterName]; } 99 105 } 100 public IFixedValueParameter<BoolValue> ApplyLinearScalingParameter { 106 public IFixedValueParameter<BoolValue> ApplyLinearScalingParameter 107 { 101 108 get { return (IFixedValueParameter<BoolValue>)Parameters[ApplyLinearScalingParameterName]; } 102 109 } 103 public IValueParameter<IntMatrix> BoundsParameter { 110 public IValueParameter<IntMatrix> BoundsParameter 111 { 104 112 get { return (IValueParameter<IntMatrix>)Parameters[BoundsParameterName]; } 105 113 } 106 public IValueParameter<IGenotypeToPhenotypeMapper> GenotypeToPhenotypeMapperParameter { 114 public IValueParameter<IGenotypeToPhenotypeMapper> GenotypeToPhenotypeMapperParameter 115 { 107 116 get { return (IValueParameter<IGenotypeToPhenotypeMapper>)Parameters[GenotypeToPhenotypeMapperParameterName]; } 108 117 } … … 111 120 #region properties 112 121 public string Filename { get; set; } 113 public static new Image StaticItemImage { get { return VSImageLibrary.Type; } } 114 115 IDataAnalysisProblemData IDataAnalysisProblem.ProblemData { 122 123 124 IDataAnalysisProblemData IDataAnalysisProblem.ProblemData 125 { 116 126 get { return ProblemData; } 117 127 } 118 public T ProblemData { 128 public T ProblemData 129 { 119 130 get { return ProblemDataParameter.Value; } 120 131 set { ProblemDataParameter.Value = value; } 121 132 } 122 133 123 public ISymbolicDataAnalysisGrammar SymbolicExpressionTreeGrammar { 134 public ISymbolicDataAnalysisGrammar SymbolicExpressionTreeGrammar 135 { 124 136 get { return SymbolicExpressionTreeGrammarParameter.Value; } 125 137 set { SymbolicExpressionTreeGrammarParameter.Value = value; } 126 138 } 127 public ISymbolicDataAnalysisExpressionTreeInterpreter SymbolicExpressionTreeInterpreter { 139 public ISymbolicDataAnalysisExpressionTreeInterpreter SymbolicExpressionTreeInterpreter 140 { 128 141 get { return SymbolicExpressionTreeInterpreterParameter.Value; } 129 142 set { SymbolicExpressionTreeInterpreterParameter.Value = value; } 130 143 } 131 144 132 public IntValue MaximumSymbolicExpressionTreeLength { 145 public IntValue MaximumSymbolicExpressionTreeLength 146 { 133 147 get { return MaximumSymbolicExpressionTreeLengthParameter.Value; } 134 148 } 135 149 136 public PercentValue RelativeNumberOfEvaluatedSamples { 150 public PercentValue RelativeNumberOfEvaluatedSamples 151 { 137 152 get { return RelativeNumberOfEvaluatedSamplesParameter.Value; } 138 153 } 139 154 140 public IntRange FitnessCalculationPartition { 155 public IntRange FitnessCalculationPartition 156 { 141 157 get { return FitnessCalculationPartitionParameter.Value; } 142 158 } 143 public IntRange ValidationPartition { 159 public IntRange ValidationPartition 160 { 144 161 get { return ValidationPartitionParameter.Value; } 145 162 } 146 public BoolValue ApplyLinearScaling { 163 public BoolValue ApplyLinearScaling 164 { 147 165 get { return ApplyLinearScalingParameter.Value; } 148 166 }
Note: See TracChangeset
for help on using the changeset viewer.