gcForest icon indicating copy to clipboard operation
gcForest copied to clipboard

How to save and load models?

Open 783572361 opened this issue 6 years ago • 3 comments

How to save and load models?

783572361 avatar Aug 31 '18 07:08 783572361

I have the same question as you

zhaopanpan73 avatar Dec 23 '18 12:12 zhaopanpan73

How to save and load models?

SAME QUESTION. How to save a model and load it? Have you found the way?

RizhaoCai avatar Mar 27 '19 12:03 RizhaoCai

How to save and load models?

class SKlearnBaseClassifier(BaseClassifierWrapper): def _load_model_from_disk(self, cache_path): return joblib.load(cache_path)

def _save_model_to_disk(self, clf, cache_path):
    joblib.dump(clf, cache_path)

you can refer to this: image

RizhaoCai avatar Mar 27 '19 12:03 RizhaoCai