hosford42 / xcs

Accuracy-based Learning Classifier Systems (XCS)
http://hosford42.github.io/xcs/
BSD 3-Clause "New" or "Revised" License
48 stars 16 forks source link

Generalize the input matching #4

Open hosford42 opened 9 years ago

hosford42 commented 9 years ago

Generalize the algorithms to support other classes besides BitString for inputs and BitCondition for input patterns. This will most likely entail accepting a factory of some sort for the input patterns, which supports the operators necessary for a genetic algorithm.

hosford42 commented 9 years ago

This will require that the code that explicitly depends on bit-strings and bit-conditions be moved out of the classes in init.py. Bit-strings should be used by default, but it should be possible to use arbitrary input and condition types, provided they implement a sufficiently similar interface. An abstract base class, Condition, would serve to define the standard condition interface.