def METHOD_NAME(self, name, value, overwrite=False):
    if name in self.classifiers and not overwrite:
        raise ValueError('Cannot overwrite "{}" classifier.'.format(name))
    self.classifiers[name] = value