def test_should_create_general_classifier(self, cfg): cl = Classifier.general(action=1, cfg=cfg) assert cl.condition == Condition("####") assert cl.action == 1 assert cl.condition == Effect("####")
def _initial_population(self): cls = [] for action in range(0, self.cfg.number_of_possible_actions): cls.append(Classifier.general(action, cfg=self.cfg)) return ClassifiersList(*cls)