def METHOD_NAME(self):
    descs = []
    classify = []
    imgs, roi_val, rois = self.config.get_imgs(self.roi_file)
    for r in rois:
        roi, clss = r
        desc = self.config.descriptor.get_descriptor(roi)
        desc = desc.flatten()
        descs.append(desc)
        classify.append(clss)
        print(clss)
    descs = np.array(descs)
    classify = np.array(classify)
    counts = {x: list(classify).count(x) for x in set(classify)}
    counts = {self.config.to_class(k): v for k, v in counts.items()}
    print(counts)
    self.config.classifier.METHOD_NAME(descs, classify)
    self.config.classifier.pickle("train.p")