Changeset 9110 for branches/LearningClassifierSystems/HeuristicLab.Encodings.CombinedIntegerVectorEncoding
- Timestamp:
- 01/04/13 20:46:18 (12 years ago)
- Location:
- branches/LearningClassifierSystems/HeuristicLab.Encodings.CombinedIntegerVectorEncoding/3.3
- Files:
-
- 4 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/LearningClassifierSystems/HeuristicLab.Encodings.CombinedIntegerVectorEncoding/3.3/CombinedIntegerVectorManipulator.cs
r9089 r9110 39 39 get { return (ILookupParameter<CombinedIntegerVector>)Parameters["Child"]; } 40 40 } 41 public ILookupParameter<CombinedIntegerVector> ParentParameter {41 public ILookupParameter<CombinedIntegerVector> FetchedClassifierParameter { 42 42 get { return (ILookupParameter<CombinedIntegerVector>)Parameters["Parent"]; } 43 43 } … … 57 57 58 58 public sealed override IOperation Apply() { 59 ChildParameter.ActualValue = Manipulate(RandomParameter.ActualValue, ChildParameter.ActualValue, ParentParameter.ActualValue);59 ChildParameter.ActualValue = Manipulate(RandomParameter.ActualValue, FetchedClassifierParameter.ActualValue, ChildParameter.ActualValue); 60 60 return base.Apply(); 61 61 } -
branches/LearningClassifierSystems/HeuristicLab.Encodings.CombinedIntegerVectorEncoding/3.3/Covering/CombinedIntegerVectorCoveringCreator.cs
r9090 r9110 75 75 CombinedIntegerVector action = (CombinedIntegerVector)ActionParameter.ActualValue.Action; 76 76 77 newCondition = UniformSomePosition InConditionManipulator.ManipulateCondition(RandomParameter.ActualValue, condition, newCondition, ChangeSymbolProbabilityParameter.ActualValue.Value);77 newCondition = UniformSomePositionManipulator.ManipulateCondition(RandomParameter.ActualValue, condition, newCondition, ChangeSymbolProbabilityParameter.ActualValue.Value); 78 78 79 79 CreatedClassifierParameter.ActualValue = new CombinedIntegerVector(newCondition, newCondition.Bounds, action, action.Bounds); -
branches/LearningClassifierSystems/HeuristicLab.Encodings.CombinedIntegerVectorEncoding/3.3/HeuristicLab.Encodings.CombinedIntegerVectorEncoding-3.3.csproj
r9105 r9110 119 119 </Compile> 120 120 <Compile Include="Manipulator\UniformOnePositionInConditionManipulator.cs" /> 121 <Compile Include="Manipulator\UniformSomePosition InConditionManipulator.cs" />121 <Compile Include="Manipulator\UniformSomePositionManipulator.cs" /> 122 122 <Compile Include="Plugin.cs" /> 123 123 <None Include="Properties\AssemblyInfo.cs.frame" /> -
branches/LearningClassifierSystems/HeuristicLab.Encodings.CombinedIntegerVectorEncoding/3.3/Interfaces/ICombinedIntegerVectorManipulator.cs
r9089 r9110 29 29 public interface ICombinedIntegerVectorManipulator : IManipulator, ICombinedIntegerVectorOperator { 30 30 ILookupParameter<CombinedIntegerVector> ChildParameter { get; } 31 ILookupParameter<CombinedIntegerVector> ParentParameter { get; }31 ILookupParameter<CombinedIntegerVector> FetchedClassifierParameter { get; } 32 32 } 33 33 } -
branches/LearningClassifierSystems/HeuristicLab.Encodings.CombinedIntegerVectorEncoding/3.3/Manipulator/UniformSomePositionManipulator.cs
r9106 r9110 27 27 28 28 namespace HeuristicLab.Encodings.CombinedIntegerVectorEncoding { 29 public class UniformSomePosition InConditionManipulator : CombinedIntegerVectorManipulator {29 public class UniformSomePositionManipulator : CombinedIntegerVectorManipulator { 30 30 31 31 public IValueLookupParameter<PercentValue> ProbabilityParameter { … … 37 37 38 38 [StorableConstructor] 39 protected UniformSomePosition InConditionManipulator(bool deserializing) : base(deserializing) { }40 protected UniformSomePosition InConditionManipulator(UniformSomePositionInConditionManipulator original, Cloner cloner)39 protected UniformSomePositionManipulator(bool deserializing) : base(deserializing) { } 40 protected UniformSomePositionManipulator(UniformSomePositionManipulator original, Cloner cloner) 41 41 : base(original, cloner) { 42 42 } 43 43 public override IDeepCloneable Clone(Cloner cloner) { 44 return new UniformSomePosition InConditionManipulator(this, cloner);44 return new UniformSomePositionManipulator(this, cloner); 45 45 } 46 public UniformSomePosition InConditionManipulator()46 public UniformSomePositionManipulator() 47 47 : base() { 48 48 Parameters.Add(new ValueLookupParameter<PercentValue>("Probability", "The probability for each dimension to be manipulated.", new PercentValue(0.5)));
Note: See TracChangeset
for help on using the changeset viewer.