You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 27, 2018. It is now read-only.
I tried to save and load model as I usually do when using sklearn model, but the evaluation result of model is apparently not the same. Anything wrong with my code?
save model
tree = DecisionTreeClassifier(max_depth=1, min_samples_leaf=1)
bag = Bagging(base_classifier=tree, n_classifiers=10)
bag.fit(text, labels)
with open(bag_path, "wb") as f:
pickle.dump(bag, f)
load model
with open(self.bag_path, "rb") as f:
self.bag = pickle.load(f)
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I tried to save and load model as I usually do when using sklearn model, but the evaluation result of model is apparently not the same. Anything wrong with my code?
save model
load model
The text was updated successfully, but these errors were encountered: