def learn(self, classAttr, unpruned=False, minNumObj=2): self.instances = self._getInstances(classAttr) #j48 = J48() #j48.setUnpruned(unpruned) #j48.setMinNumObj(minNumObj); classifier = MultiBoostAB() #classifier.setDebug(true); #classifier.setClassifier(j48) #self.j48.setConfidenceFactor(1.0) classifier.buildClassifier(self.instances) self.classifier = classifier print classifier
def getMultiBoost(): multi_boost = MultiBoost() multi_boost.setOptions(['-W weka.classifiers.functions.SMO']) return multi_boost