Writes classifier object to pickle file

def write_classifier(self, clf):
        """ Writes classifier object to pickle file """

        with open(os.path.join(self.repopath, 'classifier.pkl'), 'w') as fp:
            pickle.dump(clf, fp)