Changeset 9392 for branches/LearningClassifierSystems/HeuristicLab.Problems.DecisionListClassification
- Timestamp:
- 04/23/13 13:31:29 (12 years ago)
- Location:
- branches/LearningClassifierSystems/HeuristicLab.Problems.DecisionListClassification/3.3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/LearningClassifierSystems/HeuristicLab.Problems.DecisionListClassification/3.3/DecisionListClassificationProblem.cs
r9352 r9392 62 62 get { return (IFixedValueParameter<IntValue>)Parameters["SizePenaltyMinRules"]; } 63 63 } 64 public IFixedValueParameter<IntValue> ActivationIterationParameter {65 get { return (IFixedValueParameter<IntValue>)Parameters["ActivationIteration"]; }66 }67 64 public IFixedValueParameter<DoubleValue> InitialTheoryLengthRatioParameter { 68 65 get { return (IFixedValueParameter<DoubleValue>)Parameters["InitialTheoryLengthRatio"]; } … … 88 85 } 89 86 87 IStrataSingleObjectiveEvaluator IGAssistProblem.Evaluator { 88 get { return Evaluator; } 89 } 90 90 IDecisionListEvaluator IDecisionListClassificationProblem.Evaluator { 91 91 get { return Evaluator; } … … 101 101 : base(original, cloner) { 102 102 } 103 public override IDeepCloneable Clone(Cloner cloner) { 104 return new DecisionListClassificationProblem(this, cloner); 105 } 103 106 104 107 public DecisionListClassificationProblem() … … 113 116 Parameters.Add(new FixedValueParameter<DoubleValue>("BestKnownQuality", "", new DoubleValue(0.5))); 114 117 Parameters.Add(new FixedValueParameter<IntValue>("SizePenaltyMinRules", "", new IntValue(4))); 115 Parameters.Add(new FixedValueParameter<IntValue>("ActivationIteration", "", new IntValue(25)));116 Parameters.Add(new FixedValueParameter<DoubleValue>("InitialTheoryLengthRatio", "", new DoubleValue(0.075)));117 Parameters.Add(new FixedValueParameter<DoubleValue>("WeightRelaxFactor", "", new DoubleValue(0.9)));118 118 Parameters.Add(new FixedValueParameter<PercentValue>("ActionMutationProbability", "", new PercentValue(0.1))); 119 119 120 120 Evaluator.SizePenaltyMinRulesParameter.ActualName = "SizePenaltyMinRules"; 121 // do differently122 ((MDLEvaluator)Evaluator).MDLCalculatorParameter.Value = new MDLCalculator(ActivationIterationParameter.Value.Value, InitialTheoryLengthRatioParameter.Value.Value, WeightRelaxFactorParameter.Value.Value);123 121 124 122 InitializeOperators(); … … 169 167 } 170 168 } 171 public override IDeepCloneable Clone(Cloner cloner) {172 return new DecisionListClassificationProblem(this, cloner);173 }174 169 175 170 IParameter IGAssistProblem.ProblemDataParameter { -
branches/LearningClassifierSystems/HeuristicLab.Problems.DecisionListClassification/3.3/DecisionListClassificationProblemData.cs
r9352 r9392 214 214 } 215 215 216 public IEnumerable< DecisionListInput> FetchInput(IEnumerable<int> rows) {216 public IEnumerable<IGAssistInput> FetchInput(IEnumerable<int> rows) { 217 217 foreach (var row in rows) { 218 218 yield return FetchInput(row); … … 221 221 222 222 protected IDictionary<int, DecisionListInput> fetchInputCache = new Dictionary<int, DecisionListInput>(); 223 public DecisionListInput FetchInput(int row) {223 public IGAssistInput FetchInput(int row) { 224 224 if (!fetchInputCache.ContainsKey(row)) { 225 225 DecisionListInput input = new DecisionListInput(); … … 234 234 } 235 235 236 public IEnumerable<I Action> FetchAction(IEnumerable<int> rows) {236 public IEnumerable<IGAssistNiche> FetchAction(IEnumerable<int> rows) { 237 237 foreach (var row in rows) { 238 238 yield return FetchAction(row); … … 240 240 } 241 241 protected IDictionary<int, IAction> fetchActionCache = new Dictionary<int, IAction>(); 242 public I ActionFetchAction(int row) {242 public IGAssistNiche FetchAction(int row) { 243 243 if (!fetchActionCache.ContainsKey(row)) { 244 244 var action = (IAction)SampleRuleParameter.Value.Action.Clone(); -
branches/LearningClassifierSystems/HeuristicLab.Problems.DecisionListClassification/3.3/Properties
-
Property
svn:ignore
set to
AssemblyInfo.cs
-
Property
svn:ignore
set to
Note: See TracChangeset
for help on using the changeset viewer.