Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/25/13 12:37:18 (11 years ago)
Author:
sforsten
Message:

#1980:

  • fixed several bugs (crossover, subsumption, serialization etc.)
  • added ModuloOperator
  • CombinedIntegerVectorClassificationProblem\Data and VariableVectorClassificationProblem\Data inherit from ConditionActionClassificationProblem\Data
  • it can now be set how often the analyzers have to be executed
  • VariableVectorAction, VariableVectorCondition and VariableVectorInput now inherit from Item
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  
    4141      get { return (LookupParameter<IRandom>)Parameters["Random"]; }
    4242    }
    43     public IValueLookupParameter<IntValue> LengthParameter {
    44       get { return (IValueLookupParameter<IntValue>)Parameters["Length"]; }
     43    public IValueLookupParameter<ICombinedIntegerVectorClassificationProblemData> ProblemDataParameter {
     44      get { return (IValueLookupParameter<ICombinedIntegerVectorClassificationProblemData>)Parameters["ProblemData"]; }
    4545    }
    46     public IValueLookupParameter<IntMatrix> BoundsParameter {
    47       get { return (IValueLookupParameter<IntMatrix>)Parameters["Bounds"]; }
     46    public ILookupParameter<CombinedIntegerVector> CombinedIntegerVectorParameter {
     47      get { return (ILookupParameter<CombinedIntegerVector>)Parameters["CombinedIntegerVector"]; }
    4848    }
    4949
    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; }
    5652    }
    5753
     
    6258      : base() {
    6359      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", ""));
    6661      Parameters.Add(new LookupParameter<CombinedIntegerVector>("CombinedIntegerVector", "The vector which should be manipulated."));
    67       Parameters.Add(new ValueLookupParameter<IntValue>("ActionPartLength", "The length of the vector."));
    6862    }
    6963
    7064    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);
    7266      return base.Apply();
    7367    }
  • branches/LearningClassifierSystems/HeuristicLab.Encodings.CombinedIntegerVectorEncoding/3.3/Covering/CombinedIntegerVectorCoveringCreator.cs

    r9204 r9242  
    4343
    4444    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;
    4646
    4747      CombinedIntegerVector condition = (CombinedIntegerVector)input;
  • branches/LearningClassifierSystems/HeuristicLab.Encodings.CombinedIntegerVectorEncoding/3.3/HeuristicLab.Encodings.CombinedIntegerVectorEncoding-3.3.csproj

    r9228 r9242  
    128128    <Compile Include="Creators\UniformRandomCombinedIntegerVectorCreator.cs" />
    129129    <Compile Include="Crossovers\SinglePointCrossover.cs" />
     130    <Compile Include="Interfaces\ICombinedIntegerVectorClassificationProblem.cs" />
     131    <Compile Include="Interfaces\ICombinedIntegerVectorClassificationProblemData.cs" />
    130132    <Compile Include="Interfaces\ICombinedIntegerVectorManipulator.cs" />
    131133    <Compile Include="Interfaces\ICombinedIntegerVectorCrossover.cs" />
    132     <Compile Include="Interfaces\IBoundedCombinedIntegerVectorOperator.cs" />
    133134    <Compile Include="Interfaces\ICombinedIntegerVectorCreator.cs" />
    134135    <Compile Include="Interfaces\ICombinedIntegerVectorOperator.cs" />
  • branches/LearningClassifierSystems/HeuristicLab.Encodings.CombinedIntegerVectorEncoding/3.3/Interfaces/ICombinedIntegerVectorCreator.cs

    r9089 r9242  
    2323using HeuristicLab.Common;
    2424using HeuristicLab.Core;
    25 using HeuristicLab.Data;
    2625using HeuristicLab.Optimization;
    2726
    2827namespace 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; }
    3230    ILookupParameter<CombinedIntegerVector> CombinedIntegerVectorParameter { get; }
    3331  }
Note: See TracChangeset for help on using the changeset viewer.