This message was deleted.
# ask-anything
s
This message was deleted.
i
What’s in pickle.dumps(model) ? Does it save it when it’s not parameterized?
maybe try pickle dump? since you’re writing bytes and use dumps Something along these lines:
Copy code
with open(product['model'], 'wb') as f:
    pickle.dump(clf, f)
a
ok, will try it in separate project to check what's going on.
👍 1
e
Yeah, this is a pickle problem. Independent of Ploomber, my recommendation is to check the docs in the tpot library, most likely, your model is stored in one of the attributes. For example in scikit learn, you get it using “model.best_estimator_” - you may also try with other pickling libraries like joblib or cloudpickle