def save(self, path):
"""
Persist the model itself and it's classes with joblib and pickle.
Parameters
----------
path: string
The location of the persistence directory where model and classes will be stored.
Return
----------
None
"""
joblib.dump(self.model, path + 'tree.pkl')
joblib.dump(self.classes, path + 'classes.pkl')
评论列表
文章目录