Changeset 9605 for branches/LearningClassifierSystems/HeuristicLab.Problems.DecisionListClassification
- Timestamp:
- 06/11/13 13:32:32 (12 years ago)
- Location:
- branches/LearningClassifierSystems/HeuristicLab.Problems.DecisionListClassification/3.3
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/LearningClassifierSystems/HeuristicLab.Problems.DecisionListClassification/3.3/DecisionListClassificationProblem.cs
r9411 r9605 44 44 45 45 #region parameter properties 46 public IFixedValueParameter<BoolValue> MaximizationParameter {47 get { return ( IFixedValueParameter<BoolValue>)Parameters["Maximization"]; }46 public FixedValueParameter<BoolValue> MaximizationParameter { 47 get { return (FixedValueParameter<BoolValue>)Parameters["Maximization"]; } 48 48 } 49 49 IParameter ISingleObjectiveHeuristicOptimizationProblem.MaximizationParameter { … … 85 85 } 86 86 87 I StrataSingleObjectiveEvaluator IGAssistProblem.Evaluator {87 IGAssistObjectiveEvaluator IGAssistProblem.Evaluator { 88 88 get { return Evaluator; } 89 89 } … … 108 108 : this(new DecisionListClassificationProblemData(new Dataset(DecisionListClassificationProblemData.defaultVariableNames, DecisionListClassificationProblemData.defaultData), 109 109 DecisionListClassificationProblemData.defaultVariableNames.Take(DecisionListClassificationProblemData.defaultVariableNames.Length - 1), DecisionListClassificationProblemData.defaultVariableNames.Last()), 110 new MDLEvaluator(), new UniformRandomDecisionListCreator()) { }110 new MDLEvaluator(), new SmartDecisionListCreator()) { } 111 111 112 112 public DecisionListClassificationProblem(IDecisionListClassificationProblemData problemData, IDecisionListEvaluator decisionlistEvaluator, IDecisionListCreator decisionListCreator) … … 118 118 Parameters.Add(new FixedValueParameter<PercentValue>("ActionMutationProbability", "", new PercentValue(0.1))); 119 119 120 MaximizationParameter.Value.Value = Evaluator.MaximizationParameter.Value.Value; 121 Evaluator.MaximizationParameter.Value.ValueChanged += MaximizationParameter_ValueChanged; 120 122 Evaluator.SizePenaltyMinRulesParameter.ActualName = "SizePenaltyMinRules"; 121 123 122 124 InitializeOperators(); 125 } 126 127 private void MaximizationParameter_ValueChanged(object sender, System.EventArgs e) { 128 MaximizationParameter.Value.Value = Evaluator.MaximizationParameter.Value.Value; 123 129 } 124 130 … … 143 149 144 150 private void ParameterizeOperators() { 145 var autoDefaultRule = Operators. Where(x => x is AutoDefaultRule).Select(x => x as AutoDefaultRule).First();151 var autoDefaultRule = Operators.OfType<AutoDefaultRule>().First(); 146 152 autoDefaultRule.QualityParameter.ActualName = Evaluator.QualityParameter.ActualName; 147 153 autoDefaultRule.GAssistNichesProblemDataParameter.ActualName = ProblemDataParameter.Name; … … 149 155 foreach (IDefaultRuleOperator op in Operators.OfType<IDefaultRuleOperator>()) { 150 156 op.IndividualParameter.ActualName = SolutionCreator.DecisionListParameter.ActualName; 151 op.EvaluatorParameter.ActualName = EvaluatorParameter.Name;152 157 op.GAssistNichesProblemDataParameter.ActualName = ProblemDataParameter.Name; 153 158 op.GAssistNichesProblemDataParameter.Hidden = true; -
branches/LearningClassifierSystems/HeuristicLab.Problems.DecisionListClassification/3.3/DecisionListClassificationProblemData.cs
r9470 r9605 44 44 {0,1,1,1,0,0,0}, 45 45 {0,0,1,0,0,0,1}, 46 {1,0,1,0,1,1,0}, 47 {0,0,1,1,0,0,0}, 48 {0,1,1,1,0,0,0}, 49 {0,0,1,0,0,0,1}, 46 50 {1,0,1,0,1,1,0} 47 51 }; -
branches/LearningClassifierSystems/HeuristicLab.Problems.DecisionListClassification/3.3/HeuristicLab.Problems.DecisionListClassification-3.3.csproj
r9352 r9605 95 95 </ItemGroup> 96 96 <ItemGroup> 97 <ProjectReference Include="..\..\HeuristicLab.Algorithms.GAssist\3.3\HeuristicLab.Algorithms.GAssist-3.3.csproj">98 <Project>{f191a6fa-1b3c-4f82-a711-873b4d839bc0}</Project>99 <Name>HeuristicLab.Algorithms.GAssist-3.3</Name>100 </ProjectReference>101 97 <ProjectReference Include="..\..\HeuristicLab.Core\3.3\HeuristicLab.Core-3.3.csproj"> 102 98 <Project>{C36BD924-A541-4A00-AFA8-41701378DDC5}</Project> -
branches/LearningClassifierSystems/HeuristicLab.Problems.DecisionListClassification/3.3/Plugin.cs.frame
r9334 r9605 25 25 [Plugin("HeuristicLab.Problems.DecisionListClassification", "3.3.7.$WCREV$")] 26 26 [PluginFile("HeuristicLab.Problems.DecisionListClassification-3.3.dll", PluginFileType.Assembly)] 27 [PluginDependency("HeuristicLab.Collections", "3.3")] 28 [PluginDependency("HeuristicLab.Common", "3.3")] 27 29 [PluginDependency("HeuristicLab.Core", "3.3")] 30 [PluginDependency("HeuristicLab.Data", "3.3")] 31 [PluginDependency("HeuristicLab.Encodings.DecisionList", "3.3")] 32 [PluginDependency("HeuristicLab.Optimization", "3.3")] 33 [PluginDependency("HeuristicLab.Optimization.Operators.LCS", "3.3")] 34 [PluginDependency("HeuristicLab.Parameters", "3.3")] 35 [PluginDependency("HeuristicLab.Persistence", "3.3")] 36 [PluginDependency("HeuristicLab.Problems.DataAnalysis", "3.4")] 37 [PluginDependency("HeuristicLab.Problems.Instances", "3.3")] 28 38 public class HeuristicLabProblemsDecisionListClassificationPlugin : PluginBase { 29 39 }
Note: See TracChangeset
for help on using the changeset viewer.