Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/29/12 20:15:48 (12 years ago)
Author:
sforsten
Message:

#1980: implemented covering and changed SinglePointCrossover for CombinedIntegerVectorEncoding

Location:
branches/LearningClassifierSystems/HeuristicLab.Encodings.ConditionActionEncoding/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/LearningClassifierSystems/HeuristicLab.Encodings.ConditionActionEncoding/3.3

    • Property svn:ignore set to
      obj
      Plugin.cs
  • branches/LearningClassifierSystems/HeuristicLab.Encodings.ConditionActionEncoding/3.3/Operator/CountNumberOfUniqueActions.cs

    r9089 r9090  
    2222using HeuristicLab.Common;
    2323using HeuristicLab.Core;
     24using HeuristicLab.Data;
    2425using HeuristicLab.Operators;
    2526using HeuristicLab.Parameters;
     
    3738      get { return (IValueLookupParameter<IItemSet<IClassifier>>)Parameters["UniqueActions"]; }
    3839    }
     40    public IValueLookupParameter<IntValue> NumberOfUniqueActionsParameter {
     41      get { return (IValueLookupParameter<IntValue>)Parameters["NumberOfUniqueActions"]; }
     42    }
    3943
    4044    [StorableConstructor]
     
    5054      Parameters.Add(new ScopeTreeLookupParameter<IClassifier>("Classifiers"));
    5155      Parameters.Add(new ValueLookupParameter<IItemSet<IClassifier>>("UniqueActions"));
     56      Parameters.Add(new ValueLookupParameter<IntValue>("NumberOfUniqueActions"));
    5257    }
     58
    5359    public override IOperation Apply() {
    5460      ItemSet<IClassifier> actions = new ItemSet<IClassifier>();
     
    5662        actions.Add(classifier.Action);
    5763      }
    58       UniqueActionsParameter.Value = actions;
     64      UniqueActionsParameter.ActualValue = actions;
     65      NumberOfUniqueActionsParameter.ActualValue = new IntValue(actions.Count);
    5966      return base.Apply();
    6067    }
Note: See TracChangeset for help on using the changeset viewer.