def dump_classifier(self):
"""
This function ...
:return:
"""
# Determine the path to the pickle file
classifier_path = os.path.join(self.classification_mode_path, "classifier.pkl")
# Inform the user
self.log.info("Writing the classifier to " + classifier_path)
# Serialize and dump the classifier
joblib.dump(self.vector_classifier, classifier_path)
# -----------------------------------------------------------------
评论列表
文章目录