def __init__(self, dataset, train_dataset, cls, dets, detname): """ Expects cached detections in Table format to be passed in. The dets should not have the 'cls_ind' column, as they should all be of the same class. """ Detector.__init__(self,dataset,train_dataset,cls,detname) self.dets = dets # TODO: hack for csc_X suffix = detname[4:] if self.detname=='dpm': self.classif = DPMClassifier() else: self.classif = CSCClassifier(suffix, cls, train_dataset, dataset)