Changeset 9342
- Timestamp:
- 04/05/13 13:12:54 (12 years ago)
- Location:
- branches/LearningClassifierSystems
- Files:
-
- 33 added
- 4 deleted
- 30 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/LearningClassifierSystems/HeuristicLab.Algorithms.GAssist/3.3
-
Property
svn:ignore
set to
*.user
Plugin.cs
-
Property
svn:ignore
set to
-
branches/LearningClassifierSystems/HeuristicLab.Algorithms.GAssist/3.3/GAssist.cs
r9334 r9342 29 29 using HeuristicLab.Optimization; 30 30 using HeuristicLab.Optimization.Operators; 31 using HeuristicLab.Optimization.Operators.LCS; 31 32 using HeuristicLab.Parameters; 32 33 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; … … 203 204 Parameters.Add(new FixedValueParameter<PercentValue>("MergeProbability", "", new PercentValue(0.05))); 204 205 Parameters.Add(new FixedValueParameter<PercentValue>("StartReinitializeProbability", "", new PercentValue(0.05))); 205 Parameters.Add(new FixedValueParameter<PercentValue>("EndReinitializeProbability", "", new PercentValue( 0.0)));206 Parameters.Add(new FixedValueParameter<PercentValue>("EndReinitializeProbability", "", new PercentValue(Double.Epsilon))); 206 207 Parameters.Add(new FixedValueParameter<PercentValue>("OneProbability", "", new PercentValue(0.75))); 207 208 Parameters.Add(new FixedValueParameter<IntValue>("MaximumNumberOfIntervals", "", new IntValue(5))); … … 248 249 mainLoop.PopulationSizeParameter.ActualName = PopulationSizeParameter.Name; 249 250 mainLoop.ResultsParameter.ActualName = "Results"; 251 mainLoop.ReinitializationProbabilityOperatorParameter.ActualName = ReinitializeCurveOperatorParameter.Name; 250 252 251 253 foreach (ISelector selector in ApplicationManager.Manager.GetInstances<ISelector>().Where(x => !(x is IMultiObjectiveSelector)).OrderBy(x => x.Name)) … … 259 261 UpdateAnalyzers(); 260 262 261 foreach (IDiscreteDoubleValueModifier op in ApplicationManager.Manager.GetInstances<IDiscreteDoubleValueModifier>().OrderBy(x => x.Name)) 263 foreach (IDiscreteDoubleValueModifier op in ApplicationManager.Manager.GetInstances<IDiscreteDoubleValueModifier>().OrderBy(x => x.Name)) { 262 264 ReinitializeCurveOperatorParameter.ValidValues.Add(op); 265 } 266 ReinitializeCurveOperatorParameter.Value = ReinitializeCurveOperatorParameter.ValidValues.First(x => x.GetType().Equals(typeof(LinearDiscreteDoubleValueModifier))); 263 267 ParameterizeReinitializeCurveOperators(); 264 268 … … 295 299 var splitOperator = new SplitOperator(); 296 300 splitOperator.ProbabilityParameter.ActualName = "SplitProbability"; 301 //change 302 splitOperator.IndividualParameter.ActualName = "DecisionList"; 297 303 SpecialStages.Operators.Add(splitOperator); 298 304 var mergeOperator = new MergeOperator(); 299 305 mergeOperator.ProbabilityParameter.ActualName = "MergeProbability"; 306 //change 307 mergeOperator.IndividualParameter.ActualName = "DecisionList"; 300 308 SpecialStages.Operators.Add(mergeOperator); 301 309 var reinitializeOperator = new ReinitializeOperator(); … … 303 311 reinitializeOperator.DiscretizersParameter.ActualName = "Discretizers"; 304 312 reinitializeOperator.OneProbabilityParameter.ActualName = "OneProbability"; 313 //change 314 reinitializeOperator.IndividualParameter.ActualName = "DecisionList"; 305 315 SpecialStages.Operators.Add(reinitializeOperator); 306 316 foreach (var op in SpecialStages.Operators) { … … 477 487 IManipulator oldMutator = MutatorParameter.Value; 478 488 MutatorParameter.ValidValues.Clear(); 489 IManipulator defaultMutator = Problem.Operators.OfType<IManipulator>().FirstOrDefault(); 490 479 491 foreach (IManipulator mutator in Problem.Operators.OfType<IManipulator>().OrderBy(x => x.Name)) 480 492 MutatorParameter.ValidValues.Add(mutator); … … 483 495 if (mutator != null) MutatorParameter.Value = mutator; 484 496 } 497 if (oldMutator == null && defaultMutator != null) 498 MutatorParameter.Value = defaultMutator; 485 499 } 486 500 private void UpdateAnalyzers() { -
branches/LearningClassifierSystems/HeuristicLab.Algorithms.GAssist/3.3/GAssistMainLoop.cs
r9334 r9342 25 25 using HeuristicLab.Operators; 26 26 using HeuristicLab.Optimization.Operators; 27 using HeuristicLab.Optimization.Operators.LCS; 27 28 using HeuristicLab.Parameters; 28 29 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; … … 84 85 public ValueLookupParameter<IntValue> PopulationSizeParameter { 85 86 get { return (ValueLookupParameter<IntValue>)Parameters["PopulationSize"]; } 87 } 88 public ValueLookupParameter<IOperator> ReinitializationProbabilityOperatorParameter { 89 get { return (ValueLookupParameter<IOperator>)Parameters["ReinitializationProbabilityOperator"]; } 86 90 } 87 91 private ScopeParameter CurrentScopeParameter { … … 125 129 Parameters.Add(new ValueLookupParameter<IntValue>("EvaluatedSolutions", "The number of times solutions have been evaluated.")); 126 130 Parameters.Add(new ValueLookupParameter<IntValue>("PopulationSize", "The size of the population.")); 131 Parameters.Add(new ValueLookupParameter<IOperator>("ReinitializationProbabilityOperator", "")); 127 132 Parameters.Add(new ScopeParameter("CurrentScope", "The current scope which represents a population of solutions on which the genetic algorithm should be applied.")); 128 133 #endregion … … 132 137 ResultsCollector resultsCollector1 = new ResultsCollector(); 133 138 Placeholder analyzer1 = new Placeholder(); 139 Placeholder reinitializationProbabilityOperator = new Placeholder(); 134 140 Placeholder selector = new Placeholder(); 135 141 SubScopesProcessor subScopesProcessor1 = new SubScopesProcessor(); … … 138 144 StochasticBranch stochasticBranchCrossover = new StochasticBranch(); 139 145 Placeholder crossover = new Placeholder(); 146 RandomSelector randomSelector = new RandomSelector(); 147 PreservingRightReducer preservingRightReducer = new PreservingRightReducer(); 140 148 StochasticBranch stochasticBranchMutator = new StochasticBranch(); 141 149 Placeholder mutator = new Placeholder(); … … 162 170 analyzer1.OperatorParameter.ActualName = "Analyzer"; 163 171 172 reinitializationProbabilityOperator.Name = "Reinitialization Probability operator (placeholder)"; 173 reinitializationProbabilityOperator.OperatorParameter.ActualName = ReinitializationProbabilityOperatorParameter.Name; 174 164 175 selector.Name = "Selector"; 165 176 selector.OperatorParameter.ActualName = "Selector"; … … 172 183 crossover.Name = "Crossover"; 173 184 crossover.OperatorParameter.ActualName = "Crossover"; 185 186 randomSelector.CopySelected.Value = true; 187 randomSelector.NumberOfSelectedSubScopesParameter.Value = new IntValue(1); 174 188 175 189 stochasticBranchMutator.ProbabilityParameter.ActualName = "MutationProbability"; … … 215 229 variableCreator.Successor = resultsCollector1; 216 230 resultsCollector1.Successor = analyzer1; 217 analyzer1.Successor = selector; 231 analyzer1.Successor = reinitializationProbabilityOperator; 232 reinitializationProbabilityOperator.Successor = selector; 218 233 selector.Successor = subScopesProcessor1; 219 234 subScopesProcessor1.Operators.Add(new EmptyOperator()); … … 224 239 uniformSubScopesProcessor1.Successor = uniformSubScopesProcessor2; 225 240 stochasticBranchCrossover.FirstBranch = crossover; 226 stochasticBranchCrossover.SecondBranch = null; 241 stochasticBranchCrossover.SecondBranch = randomSelector; 242 randomSelector.Successor = preservingRightReducer; 227 243 stochasticBranchCrossover.Successor = stochasticBranchMutator; 228 244 crossover.Successor = null; 245 preservingRightReducer.Successor = null; 229 246 stochasticBranchMutator.FirstBranch = mutator; 230 247 stochasticBranchMutator.SecondBranch = null; … … 246 263 comparator.Successor = analyzer2; 247 264 analyzer2.Successor = conditionalBranch; 248 conditionalBranch.FalseBranch = selector;265 conditionalBranch.FalseBranch = reinitializationProbabilityOperator; 249 266 conditionalBranch.TrueBranch = null; 250 267 conditionalBranch.Successor = null; -
branches/LearningClassifierSystems/HeuristicLab.Algorithms.GAssist/3.3/HeuristicLab.Algorithms.GAssist-3.3.csproj
r9334 r9342 96 96 </ItemGroup> 97 97 <ItemGroup> 98 <Compile Include="Discretizer\UniformWidthDiscretizer.cs" />99 <Compile Include="Interfaces\IDiscretizer.cs" />100 <Compile Include="Interfaces\IGAssistIndividualCreator.cs" />101 <Compile Include="Interfaces\IGAssistSpecialStage.cs" />102 <Compile Include="Interfaces\IGAssistIndividual.cs" />103 <Compile Include="SpecialStage\GAssistSpecialStageMultiOperator.cs" />104 <Compile Include="SpecialStage\GAssistSpecialStageOperator.cs" />105 <Compile Include="SpecialStage\MergeOperator.cs" />106 <Compile Include="SpecialStage\ReinitializeOperator.cs" />107 <Compile Include="SpecialStage\SplitOperator.cs" />108 98 <None Include="Properties\AssemblyInfo.cs.frame" /> 109 99 <None Include="Plugin.cs.frame" /> … … 121 111 <Name>HeuristicLab.Core-3.3</Name> 122 112 </ProjectReference> 113 <ProjectReference Include="..\..\HeuristicLab.Optimization.Operators.LCS\3.3\HeuristicLab.Optimization.Operators.LCS-3.3.csproj"> 114 <Project>{f2c6d3b0-bd4f-4747-b13e-b18e53a2a09d}</Project> 115 <Name>HeuristicLab.Optimization.Operators.LCS-3.3</Name> 116 </ProjectReference> 123 117 </ItemGroup> 124 118 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> 119 <PropertyGroup> 120 <PreBuildEvent>set Path=%25Path%25;$(ProjectDir);$(SolutionDir) 121 set ProjectDir=$(ProjectDir) 122 set SolutionDir=$(SolutionDir) 123 set Outdir=$(Outdir) 124 125 call PreBuildEvent.cmd 126 </PreBuildEvent> 127 </PropertyGroup> 125 128 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 126 129 Other similar extension points exist, see Microsoft.Common.targets. -
branches/LearningClassifierSystems/HeuristicLab.Algorithms.GAssist/3.3/Properties
-
Property
svn:ignore
set to
AssemblyInfo.cs
-
Property
svn:ignore
set to
-
branches/LearningClassifierSystems/HeuristicLab.Algorithms.LearningClassifierSystems/3.3/HeuristicLab.Algorithms.LearningClassifierSystems-3.3.csproj
r9228 r9342 124 124 <Private>False</Private> 125 125 </ProjectReference> 126 <ProjectReference Include="..\..\HeuristicLab.Optimization.Operators.LCS\3.3\HeuristicLab.Optimization.Operators.LCS-3.3.csproj"> 127 <Project>{f2c6d3b0-bd4f-4747-b13e-b18e53a2a09d}</Project> 128 <Name>HeuristicLab.Optimization.Operators.LCS-3.3</Name> 129 </ProjectReference> 126 130 <ProjectReference Include="..\..\HeuristicLab.Problems.ConditionActionClassification\3.3\HeuristicLab.Problems.ConditionActionClassification-3.3.csproj"> 127 131 <Project>{EA51D441-F6A3-41E1-9993-A2488E93C222}</Project> -
branches/LearningClassifierSystems/HeuristicLab.Algorithms.LearningClassifierSystems/3.3/LCSAdaptedGeneticAlgorithm.cs
r9226 r9342 27 27 using HeuristicLab.Operators; 28 28 using HeuristicLab.Optimization.Operators; 29 using HeuristicLab.Optimization.Operators.LCS; 29 30 using HeuristicLab.Parameters; 30 31 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; -
branches/LearningClassifierSystems/HeuristicLab.Encodings.ConditionActionEncoding/3.3
- Property svn:ignore
-
old new 2 2 Plugin.cs 3 3 *.user 4 *.suo
-
- Property svn:ignore
-
branches/LearningClassifierSystems/HeuristicLab.Encodings.ConditionActionEncoding/3.3/HeuristicLab.Encodings.ConditionActionEncoding-3.3.csproj
r9334 r9342 127 127 <Compile Include="Reinforcement\IActionExecuter.cs" /> 128 128 <Compile Include="Reinforcement\IClassifierFetcher.cs" /> 129 <Compile Include="Selectors\PreservingRightReducer.cs" />130 129 <Compile Include="Subsumption\ActionSetSubsumptionOperator.cs" /> 131 130 <Compile Include="Subsumption\CheckGASubsumptionOperator.cs" /> -
branches/LearningClassifierSystems/HeuristicLab.Encodings.DecisionList/3.3
- Property svn:ignore
-
old new 1 1 *.user 2 Plugin.cs
-
- Property svn:ignore
-
branches/LearningClassifierSystems/HeuristicLab.Encodings.DecisionList/3.3/Creators/UniformRandomDecisionListCreator.cs
r9334 r9342 21 21 22 22 using System.Collections.Generic; 23 using HeuristicLab.Algorithms.GAssist;24 23 using HeuristicLab.Common; 25 24 using HeuristicLab.Core; 25 using HeuristicLab.Optimization.Operators.LCS; 26 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 27 27 … … 50 50 rules.Add(newRule); 51 51 } 52 return new DecisionList(rules); 52 53 return new DecisionList(rules); //, DefaultActionParameter.ActualValue); 53 54 } 54 55 } -
branches/LearningClassifierSystems/HeuristicLab.Encodings.DecisionList/3.3/Crossover/SinglePointCrossover.cs
r9334 r9342 62 62 } 63 63 64 return new DecisionList(rules );64 return new DecisionList(rules, parent1.DefaultAction); 65 65 } 66 66 -
branches/LearningClassifierSystems/HeuristicLab.Encodings.DecisionList/3.3/DecisionList.cs
r9334 r9342 25 25 using HeuristicLab.Common; 26 26 using HeuristicLab.Core; 27 using HeuristicLab.Optimization.Operators.LCS; 27 28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 28 29 … … 30 31 [StorableClass] 31 32 [Item("DecisionList", "")] 32 public class DecisionList : Item {33 public class DecisionList : Item, IGAssistIndividual { 33 34 [Storable] 34 35 private IList<Rule> rules; … … 43 44 } 44 45 46 // default rule (action) is part of the rule set size 47 public int RuleSetSize { 48 get { return defaultAction == null ? rules.Count : rules.Count + 1; } 49 } 50 45 51 [StorableConstructor] 46 52 protected DecisionList(bool deserializing) : base(deserializing) { } 47 53 protected DecisionList(DecisionList original, Cloner cloner) 48 54 : base(original, cloner) { 55 defaultAction = original.DefaultAction; 56 rules = new List<Rule>(original.rules.Count); 57 foreach (var rule in original.Rules) { 58 rules.Add(cloner.Clone(rule)); 59 } 49 60 } 50 61 public DecisionList() … … 56 67 : base() { 57 68 this.rules = rules; 58 defaultAction = null;69 this.defaultAction = null; 59 70 } 60 71 public DecisionList(List<Rule> rules, IAction defaultAction) … … 95 106 return estimated; 96 107 } 108 109 #region IGAssistIndividual Members 110 111 public void ApplySplit(IRandom random, double probability) { 112 foreach (var rule in rules) { 113 rule.ApplySplit(random, probability); 114 } 115 } 116 117 public void ApplyMerge(IRandom random, double probability) { 118 foreach (var rule in rules) { 119 rule.ApplyMerge(random, probability); 120 } 121 } 122 123 public void ApplyReinitialize(IRandom random, double probability, double oneProbability, IEnumerable<IDiscretizer> discretizers) { 124 foreach (var rule in rules) { 125 rule.ApplyReinitialize(random, probability, oneProbability, discretizers); 126 } 127 } 128 129 #endregion 97 130 } 98 131 } -
branches/LearningClassifierSystems/HeuristicLab.Encodings.DecisionList/3.3/DecisionListCreator.cs
r9334 r9342 20 20 #endregion 21 21 22 using HeuristicLab.Algorithms.GAssist;23 22 using HeuristicLab.Common; 24 23 using HeuristicLab.Core; 25 24 using HeuristicLab.Data; 26 25 using HeuristicLab.Operators; 26 using HeuristicLab.Optimization.Operators.LCS; 27 27 using HeuristicLab.Parameters; 28 28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; … … 52 52 get { return (ILookupParameter<IRandom>)Parameters["Random"]; } 53 53 } 54 public IValueLookupParameter<IAction> DefaultActionParameter { 55 get { return (IValueLookupParameter<IAction>)Parameters["DefaultAction"]; } 56 } 54 57 #endregion 55 58 … … 67 70 Parameters.Add(new LookupParameter<DecisionList>("DecisionList", "")); 68 71 Parameters.Add(new LookupParameter<IRandom>("Random", "The pseudo random number generator which should be used for stochastic manipulation operators.")); 69 72 Parameters.Add(new ValueLookupParameter<IAction>("DefaultAction", "")); 70 73 } 71 74 -
branches/LearningClassifierSystems/HeuristicLab.Encodings.DecisionList/3.3/HeuristicLab.Encodings.DecisionList-3.3.csproj
r9334 r9342 126 126 </ItemGroup> 127 127 <ItemGroup> 128 <ProjectReference Include="..\..\HeuristicLab.Algorithms.GAssist\3.3\HeuristicLab.Algorithms.GAssist-3.3.csproj">129 <Project>{f191a6fa-1b3c-4f82-a711-873b4d839bc0}</Project>130 <Name>HeuristicLab.Algorithms.GAssist-3.3</Name>131 </ProjectReference>132 128 <ProjectReference Include="..\..\HeuristicLab.Core\3.3\HeuristicLab.Core-3.3.csproj"> 133 129 <Project>{c36bd924-a541-4a00-afa8-41701378ddc5}</Project> 134 130 <Name>HeuristicLab.Core-3.3</Name> 131 </ProjectReference> 132 <ProjectReference Include="..\..\HeuristicLab.Optimization.Operators.LCS\3.3\HeuristicLab.Optimization.Operators.LCS-3.3.csproj"> 133 <Project>{f2c6d3b0-bd4f-4747-b13e-b18e53a2a09d}</Project> 134 <Name>HeuristicLab.Optimization.Operators.LCS-3.3</Name> 135 135 </ProjectReference> 136 136 <ProjectReference Include="..\..\HeuristicLab.Problems.DataAnalysis\3.4\HeuristicLab.Problems.DataAnalysis-3.4.csproj"> … … 141 141 <ItemGroup /> 142 142 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> 143 <PropertyGroup> 144 <PreBuildEvent>set Path=%25Path%25;$(ProjectDir);$(SolutionDir) 145 set ProjectDir=$(ProjectDir) 146 set SolutionDir=$(SolutionDir) 147 set Outdir=$(Outdir) 148 149 call PreBuildEvent.cmd 150 </PreBuildEvent> 151 </PropertyGroup> 143 152 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 144 153 Other similar extension points exist, see Microsoft.Common.targets. -
branches/LearningClassifierSystems/HeuristicLab.Encodings.DecisionList/3.3/Interfaces/IDecisionListClassificationProblemData.cs
r9334 r9342 51 51 52 52 IEnumerable<IAction> FetchAction(IEnumerable<int> rows); 53 IAction FetchAction(int rows); 53 54 54 55 event EventHandler Changed; -
branches/LearningClassifierSystems/HeuristicLab.Encodings.DecisionList/3.3/Interfaces/IDecisionListCreator.cs
r9334 r9342 20 20 #endregion 21 21 22 using HeuristicLab.Algorithms.GAssist;23 22 using HeuristicLab.Core; 24 23 using HeuristicLab.Data; 25 24 using HeuristicLab.Optimization; 25 using HeuristicLab.Optimization.Operators.LCS; 26 26 27 27 namespace HeuristicLab.Encodings.DecisionList { … … 31 31 IValueLookupParameter<IntValue> InitialNumberOfRulesParameter { get; } 32 32 IValueLookupParameter<PercentValue> OneProbabilityParameter { get; } 33 IValueLookupParameter<IAction> DefaultActionParameter { get; } 33 34 } 34 35 } -
branches/LearningClassifierSystems/HeuristicLab.Encodings.DecisionList/3.3/Interfaces/IDecisionListManipulator.cs
r9334 r9342 21 21 22 22 using HeuristicLab.Core; 23 using HeuristicLab.Data; 23 24 using HeuristicLab.Optimization; 24 25 … … 26 27 public interface IDecisionListManipulator : IDecisionListOperator, IManipulator { 27 28 ILookupParameter<DecisionList> ChildParameter { get; } 29 ILookupParameter<PercentValue> ActionMutationProbabilityParameter { get; } 28 30 } 29 31 } -
branches/LearningClassifierSystems/HeuristicLab.Encodings.DecisionList/3.3/Rule.cs
r9334 r9342 24 24 using System.Linq; 25 25 using System.Text; 26 using HeuristicLab.Algorithms.GAssist;27 26 using HeuristicLab.Common; 28 27 using HeuristicLab.Core; 28 using HeuristicLab.Optimization.Operators.LCS; 29 29 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 30 30 … … 110 110 return new Rule(crossedVariables, action); 111 111 } 112 113 public void ApplySplit(IRandom random, double probability) { 114 foreach (var variable in variables.Values) { 115 if (random.NextDouble() < probability) 116 variable.Split(random); 117 } 118 } 119 120 public void ApplyMerge(IRandom random, double probability) { 121 foreach (var variable in variables.Values) { 122 if (random.NextDouble() < probability) 123 variable.Merge(random); 124 } 125 } 126 127 public void ApplyReinitialize(IRandom random, double probability, double oneProbability, IEnumerable<IDiscretizer> discretizers) { 128 foreach (var variable in variables.Values) { 129 if (random.NextDouble() < probability) 130 variable.Reinitialize(random, oneProbability, discretizers); 131 } 132 } 112 133 } 113 134 } -
branches/LearningClassifierSystems/HeuristicLab.Encodings.DecisionList/3.3/Variable/DoubleVariable.cs
r9334 r9342 23 23 using System.Collections.Generic; 24 24 using System.Linq; 25 using HeuristicLab.Algorithms.GAssist;26 25 using HeuristicLab.Common; 27 26 using HeuristicLab.Core; 27 using HeuristicLab.Optimization.Operators.LCS; 28 28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 29 29 -
branches/LearningClassifierSystems/HeuristicLab.Encodings.DecisionList/3.3/Variable/IVariable.cs
r9334 r9342 22 22 using System; 23 23 using System.Collections.Generic; 24 using HeuristicLab.Algorithms.GAssist;25 24 using HeuristicLab.Core; 25 using HeuristicLab.Optimization.Operators.LCS; 26 26 27 27 namespace HeuristicLab.Encodings.DecisionList { -
branches/LearningClassifierSystems/HeuristicLab.Encodings.DecisionList/3.3/Variable/Variable.cs
r9334 r9342 23 23 using System.Collections.Generic; 24 24 using System.Text; 25 using HeuristicLab.Algorithms.GAssist;26 25 using HeuristicLab.Common; 27 26 using HeuristicLab.Core; 27 using HeuristicLab.Optimization.Operators.LCS; 28 28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 29 29 -
branches/LearningClassifierSystems/HeuristicLab.Problems.CombinedIntegerVectorClassification/3.3/Properties/AssemblyInfo.cs.frame
r9226 r9342 55 55 // [assembly: AssemblyVersion("1.0.*")] 56 56 [assembly: AssemblyVersion("3.3.0.0")] 57 [assembly: AssemblyFileVersion("3.3.7. 9194")]57 [assembly: AssemblyFileVersion("3.3.7.$WCREV$")] -
branches/LearningClassifierSystems/HeuristicLab.Problems.ConditionActionClassification/3.3/ConditionActionClassificationProblem.cs
r9242 r9342 211 211 } 212 212 213 protected v oid ParameterizeOperators() {213 protected virtual void ParameterizeOperators() { 214 214 foreach (XCSSolutionAnalyzer xcsAnalyzer in Operators.OfType<XCSSolutionAnalyzer>()) { 215 215 xcsAnalyzer.ClassifierParameter.ActualName = ChildName; -
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. -
branches/LearningClassifierSystems/HeuristicLab.Problems.VariableVectorClassification/3.3/HeuristicLab.Problems.VariableVectorClassification-3.3.csproj
r9334 r9342 122 122 </ItemGroup> 123 123 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> 124 <PropertyGroup> 125 <PreBuildEvent>set Path=%25Path%25;$(ProjectDir);$(SolutionDir) 126 set ProjectDir=$(ProjectDir) 127 set SolutionDir=$(SolutionDir) 128 set Outdir=$(Outdir) 129 130 call PreBuildEvent.cmd</PreBuildEvent> 131 </PropertyGroup> 124 132 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 125 133 Other similar extension points exist, see Microsoft.Common.targets. -
branches/LearningClassifierSystems/HeuristicLab.Problems.VariableVectorClassification/3.3/VariableVectorClassificationProblem.cs
r9242 r9342 116 116 } 117 117 118 protected override void ParameterizeOperators() { 119 base.ParameterizeOperators(); 120 foreach (IVariableVectorCrossover op in Operators.OfType<IVariableVectorCrossover>()) { 121 op.ParentsParameter.ActualName = SolutionCreator.VariableVectorParameter.ActualName; 122 op.ParentsParameter.Hidden = true; 123 op.ChildParameter.ActualName = SolutionCreator.VariableVectorParameter.ActualName; 124 op.ChildParameter.Hidden = true; 125 } 126 } 127 118 128 private IEnumerable<IManipulator> AddManipulators() { 119 129 var manipulator = new UniformSomePositionManipulator(); -
branches/LearningClassifierSystems/LearningClassifierSystem.sln
r9334 r9342 1 1 2 Microsoft Visual Studio Solution File, Format Version 1 1.003 # Visual Studio 201 02 Microsoft Visual Studio Solution File, Format Version 12.00 3 # Visual Studio 2012 4 4 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{96396439-A764-4022-A8D2-BE021449B8D1}" 5 5 ProjectSection(SolutionItems) = preProject … … 35 35 EndProject 36 36 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Problems.DecisionListClassification-3.3", "HeuristicLab.Problems.DecisionListClassification\3.3\HeuristicLab.Problems.DecisionListClassification-3.3.csproj", "{CA20AC55-B57D-4078-8CB9-C44E5FF7958B}" 37 EndProject 38 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Optimization.Operators.LCS-3.3", "HeuristicLab.Optimization.Operators.LCS\3.3\HeuristicLab.Optimization.Operators.LCS-3.3.csproj", "{F2C6D3B0-BD4F-4747-B13E-B18E53A2A09D}" 37 39 EndProject 38 40 Global … … 170 172 {CA20AC55-B57D-4078-8CB9-C44E5FF7958B}.Release|x64.ActiveCfg = Release|Any CPU 171 173 {CA20AC55-B57D-4078-8CB9-C44E5FF7958B}.Release|x86.ActiveCfg = Release|Any CPU 174 {F2C6D3B0-BD4F-4747-B13E-B18E53A2A09D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 175 {F2C6D3B0-BD4F-4747-B13E-B18E53A2A09D}.Debug|Any CPU.Build.0 = Debug|Any CPU 176 {F2C6D3B0-BD4F-4747-B13E-B18E53A2A09D}.Debug|x64.ActiveCfg = Debug|Any CPU 177 {F2C6D3B0-BD4F-4747-B13E-B18E53A2A09D}.Debug|x86.ActiveCfg = Debug|Any CPU 178 {F2C6D3B0-BD4F-4747-B13E-B18E53A2A09D}.Release|Any CPU.ActiveCfg = Release|Any CPU 179 {F2C6D3B0-BD4F-4747-B13E-B18E53A2A09D}.Release|Any CPU.Build.0 = Release|Any CPU 180 {F2C6D3B0-BD4F-4747-B13E-B18E53A2A09D}.Release|x64.ActiveCfg = Release|Any CPU 181 {F2C6D3B0-BD4F-4747-B13E-B18E53A2A09D}.Release|x86.ActiveCfg = Release|Any CPU 172 182 EndGlobalSection 173 183 GlobalSection(SolutionProperties) = preSolution
Note: See TracChangeset
for help on using the changeset viewer.