Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/10/13 15:15:13 (11 years ago)
Author:
sforsten
Message:

#1980:

  • added DecisionListView
  • added event handlers in *ProblemData
  • renamed project Problems.XCS.Views to Problems.lCS.Views and Problems.Instances.ConditionActionClassification to Problems.Instances.LCS
  • integrated niching in GAssist and added NichingTournamentSelector
  • minor code improvements and property changes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/LearningClassifierSystems/HeuristicLab.Problems.CombinedIntegerVectorClassification/3.3/CombinedIntegerVectorClassificationProblemData.cs

    r9242 r9352  
    4545      get { return (IFixedValueParameter<IntValue>)Parameters["ActionLength"]; }
    4646    }
    47     public IFixedValueParameter<IntMatrix> BoundsParameter {
    48       get { return (IFixedValueParameter<IntMatrix>)Parameters["Bounds"]; }
     47    public IValueParameter<IntMatrix> BoundsParameter {
     48      get { return (IValueParameter<IntMatrix>)Parameters["Bounds"]; }
    4949    }
    5050    #endregion
     
    7777      Parameters.Add(new FixedValueParameter<IntValue>("Length", "", new IntValue(allowedConditionVariables.Count() + allowedActionVariables.Count())));
    7878      Parameters.Add(new FixedValueParameter<IntValue>("ActionLength", "", new IntValue(allowedActionVariables.Count())));
    79       Parameters.Add(new FixedValueParameter<IntMatrix>("Bounds", "", GetBoundsMatrix(dataset, allowedConditionVariables, allowedActionVariables)));
     79      Parameters.Add(new ValueParameter<IntMatrix>("Bounds", "", GetBoundsMatrix(dataset, allowedConditionVariables, allowedActionVariables)));
    8080    }
    8181
     
    126126      return (FetchInput(rowNumber) as IClassifier).Action;
    127127    }
     128
     129    protected override void ActionConditionVariablesChanged() {
     130      ActionLength.Value = AllowedActionVariables.Count();
     131      Length.Value = AllowedConditionVariables.Count() + ActionLength.Value;
     132      BoundsParameter.Value = GetBoundsMatrix(Dataset, AllowedConditionVariables, AllowedActionVariables);
     133    }
    128134  }
    129135}
Note: See TracChangeset for help on using the changeset viewer.