Changeset 9342 for branches/LearningClassifierSystems/HeuristicLab.Problems.DecisionListClassification
- Timestamp:
- 04/05/13 13:12:54 (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
-
Property
svn:ignore
set to
Plugin.cs
-
Property
svn:ignore
set to
-
branches/LearningClassifierSystems/HeuristicLab.Problems.DecisionListClassification/3.3/DecisionListClassificationProblem.cs
r9334 r9342 29 29 using HeuristicLab.Parameters; 30 30 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 31 using HeuristicLab.PluginInfrastructure; 31 32 using HeuristicLab.Problems.DataAnalysis; 32 33 … … 64 65 public IFixedValueParameter<DoubleValue> WeightRelaxFactorParameter { 65 66 get { return (IFixedValueParameter<DoubleValue>)Parameters["WeightRelaxFactor"]; } 67 } 68 public IFixedValueParameter<PercentValue> ActionMutationProbabilityParameter { 69 get { return (IFixedValueParameter<PercentValue>)Parameters["ActionMutationProbability"]; } 66 70 } 67 71 … … 107 111 Parameters.Add(new FixedValueParameter<DoubleValue>("InitialTheoryLengthRatio", "", new DoubleValue(0.075))); 108 112 Parameters.Add(new FixedValueParameter<DoubleValue>("WeightRelaxFactor", "", new DoubleValue(0.9))); 113 Parameters.Add(new FixedValueParameter<PercentValue>("ActionMutationProbability", "", new PercentValue(0.1))); 109 114 110 115 Evaluator.SizePenaltyMinRulesParameter.ActualName = "SizePenaltyMinRules"; 111 116 // do differently 112 117 ((MDLEvaluator)Evaluator).MDLCalculatorParameter.Value = new MDLCalculator(ActivationIterationParameter.Value.Value, InitialTheoryLengthRatioParameter.Value.Value, WeightRelaxFactorParameter.Value.Value); 118 // do differently 119 decisionListCreator.DefaultActionParameter.Value = problemData.FetchAction(0); 120 121 InitializeOperators(); 122 } 123 124 private void InitializeOperators() { 125 foreach (var op in ApplicationManager.Manager.GetInstances<IDecisionListCrossover>()) 126 Operators.Add(op); 127 foreach (var op in ApplicationManager.Manager.GetInstances<IDecisionListManipulator>()) 128 Operators.Add(op); 129 130 ParameterizeOperators(); 131 } 132 133 private void ParameterizeOperators() { 134 foreach (IDecisionListCrossover op in Operators.OfType<IDecisionListCrossover>()) { 135 op.ParentsParameter.ActualName = SolutionCreator.DecisionListParameter.ActualName; 136 op.ParentsParameter.Hidden = true; 137 op.ChildParameter.ActualName = SolutionCreator.DecisionListParameter.ActualName; 138 op.ChildParameter.Hidden = true; 139 } 140 foreach (IDecisionListManipulator op in Operators.OfType<IDecisionListManipulator>()) { 141 op.ChildParameter.ActualName = SolutionCreator.DecisionListParameter.ActualName; 142 op.ChildParameter.Hidden = true; 143 op.ActionMutationProbabilityParameter.ActualName = ActionMutationProbabilityParameter.Name; 144 op.ActionMutationProbabilityParameter.Hidden = true; 145 } 113 146 } 114 147 public override IDeepCloneable Clone(Cloner cloner) { -
branches/LearningClassifierSystems/HeuristicLab.Problems.DecisionListClassification/3.3/HeuristicLab.Problems.DecisionListClassification-3.3.csproj
r9334 r9342 115 115 </ItemGroup> 116 116 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> 117 <PropertyGroup> 118 <PreBuildEvent>set Path=%25Path%25;$(ProjectDir);$(SolutionDir) 119 set ProjectDir=$(ProjectDir) 120 set SolutionDir=$(SolutionDir) 121 set Outdir=$(Outdir) 122 123 call PreBuildEvent.cmd 124 </PreBuildEvent> 125 </PropertyGroup> 117 126 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 118 127 Other similar extension points exist, see Microsoft.Common.targets.
Note: See TracChangeset
for help on using the changeset viewer.