Changeset 9242 for branches/LearningClassifierSystems/HeuristicLab.Encodings.CombinedIntegerVectorEncoding
- Timestamp:
- 02/25/13 12:37:18 (12 years ago)
- Location:
- branches/LearningClassifierSystems/HeuristicLab.Encodings.CombinedIntegerVectorEncoding/3.3
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/LearningClassifierSystems/HeuristicLab.Encodings.CombinedIntegerVectorEncoding/3.3/CombinedIntegerVectorCreator.cs
r9089 r9242 41 41 get { return (LookupParameter<IRandom>)Parameters["Random"]; } 42 42 } 43 public IValueLookupParameter<I ntValue> LengthParameter {44 get { return (IValueLookupParameter<I ntValue>)Parameters["Length"]; }43 public IValueLookupParameter<ICombinedIntegerVectorClassificationProblemData> ProblemDataParameter { 44 get { return (IValueLookupParameter<ICombinedIntegerVectorClassificationProblemData>)Parameters["ProblemData"]; } 45 45 } 46 public I ValueLookupParameter<IntMatrix> BoundsParameter {47 get { return (I ValueLookupParameter<IntMatrix>)Parameters["Bounds"]; }46 public ILookupParameter<CombinedIntegerVector> CombinedIntegerVectorParameter { 47 get { return (ILookupParameter<CombinedIntegerVector>)Parameters["CombinedIntegerVector"]; } 48 48 } 49 49 50 public IValueLookupParameter<IntValue> ActionPartLengthParameter { 51 get { return (IValueLookupParameter<IntValue>)Parameters["ActionPartLength"]; } 52 } 53 54 public ILookupParameter<CombinedIntegerVector> CombinedIntegerVectorParameter { 55 get { return (ILookupParameter<CombinedIntegerVector>)Parameters["CombinedIntegerVector"]; } 50 protected ICombinedIntegerVectorClassificationProblemData ProblemData { 51 get { return ProblemDataParameter.ActualValue; } 56 52 } 57 53 … … 62 58 : base() { 63 59 Parameters.Add(new LookupParameter<IRandom>("Random", "The pseudo random number generator which should be used for stochastic manipulation operators.")); 64 Parameters.Add(new ValueLookupParameter<IntValue>("Length", "The length of the vector.")); 65 Parameters.Add(new ValueLookupParameter<IntMatrix>("Bounds", "The bounds matrix can contain one row for each dimension with three columns specifying minimum (inclusive), maximum (exclusive), and step size. If less rows are given the matrix is cycled.")); 60 Parameters.Add(new ValueLookupParameter<ICombinedIntegerVectorClassificationProblemData>("ProblemData", "")); 66 61 Parameters.Add(new LookupParameter<CombinedIntegerVector>("CombinedIntegerVector", "The vector which should be manipulated.")); 67 Parameters.Add(new ValueLookupParameter<IntValue>("ActionPartLength", "The length of the vector."));68 62 } 69 63 70 64 public sealed override IOperation Apply() { 71 CombinedIntegerVectorParameter.ActualValue = Create(RandomParameter.ActualValue, LengthParameter.ActualValue, BoundsParameter.ActualValue, ActionPartLengthParameter.ActualValue);65 CombinedIntegerVectorParameter.ActualValue = Create(RandomParameter.ActualValue, ProblemData.LengthParameter.Value, ProblemData.BoundsParameter.Value, ProblemData.ActionLengthParameter.Value); 72 66 return base.Apply(); 73 67 } -
branches/LearningClassifierSystems/HeuristicLab.Encodings.CombinedIntegerVectorEncoding/3.3/Covering/CombinedIntegerVectorCoveringCreator.cs
r9204 r9242 43 43 44 44 protected override IClassifier CreateCoveredClassifier(IInput input, IAction action, IRandom random, double changeSymbolProbability) { 45 CombinedIntegerVector newCondition = (CombinedIntegerVector) input.Clone();45 CombinedIntegerVector newCondition = (CombinedIntegerVector)((CombinedIntegerVector)input.Clone()).Condition; 46 46 47 47 CombinedIntegerVector condition = (CombinedIntegerVector)input; -
branches/LearningClassifierSystems/HeuristicLab.Encodings.CombinedIntegerVectorEncoding/3.3/HeuristicLab.Encodings.CombinedIntegerVectorEncoding-3.3.csproj
r9228 r9242 128 128 <Compile Include="Creators\UniformRandomCombinedIntegerVectorCreator.cs" /> 129 129 <Compile Include="Crossovers\SinglePointCrossover.cs" /> 130 <Compile Include="Interfaces\ICombinedIntegerVectorClassificationProblem.cs" /> 131 <Compile Include="Interfaces\ICombinedIntegerVectorClassificationProblemData.cs" /> 130 132 <Compile Include="Interfaces\ICombinedIntegerVectorManipulator.cs" /> 131 133 <Compile Include="Interfaces\ICombinedIntegerVectorCrossover.cs" /> 132 <Compile Include="Interfaces\IBoundedCombinedIntegerVectorOperator.cs" />133 134 <Compile Include="Interfaces\ICombinedIntegerVectorCreator.cs" /> 134 135 <Compile Include="Interfaces\ICombinedIntegerVectorOperator.cs" /> -
branches/LearningClassifierSystems/HeuristicLab.Encodings.CombinedIntegerVectorEncoding/3.3/Interfaces/ICombinedIntegerVectorCreator.cs
r9089 r9242 23 23 using HeuristicLab.Common; 24 24 using HeuristicLab.Core; 25 using HeuristicLab.Data;26 25 using HeuristicLab.Optimization; 27 26 28 27 namespace HeuristicLab.Encodings.CombinedIntegerVectorEncoding { 29 public interface ICombinedIntegerVectorCreator : ISolutionCreator, IBoundedCombinedIntegerVectorOperator, ICombinedIntegerVectorOperator, IOperator, IParameterizedNamedItem, INamedItem, IParameterizedItem, IItem, IContent, IDeepCloneable, ICloneable { 30 IValueLookupParameter<IntValue> LengthParameter { get; } 31 IValueLookupParameter<IntValue> ActionPartLengthParameter { get; } 28 public interface ICombinedIntegerVectorCreator : ISolutionCreator, ICombinedIntegerVectorOperator, IOperator, IParameterizedNamedItem, INamedItem, IParameterizedItem, IItem, IContent, IDeepCloneable, ICloneable { 29 IValueLookupParameter<ICombinedIntegerVectorClassificationProblemData> ProblemDataParameter { get; } 32 30 ILookupParameter<CombinedIntegerVector> CombinedIntegerVectorParameter { get; } 33 31 }
Note: See TracChangeset
for help on using the changeset viewer.