Replies: 1 comment
|
This got a proper fix in the 2.x releases: the sklearn-style models now have model.save("saint.deeptab")
loaded = SAINTClassifier.load("saint.deeptab")
loaded.predict_proba(X_test)I ran this with deeptab 2.1.0 on a small simulated dataset (5 numeric columns plus one categorical, 2 epochs, CPU), and the reloaded model gave exactly the same |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Dear team and community,
Thank you for your work. I am currently trying to use DeepTab to implement a Saint-based classifier and I struggle with saving and loading my trained models. It seems that the save method defined in deeptab/base_models/utils/basemodel.py does not work for the SAINTclassifier class.
I also tried using joblib and manually saving the weights in a pth file, but in doing so the internal state (such as the task_model attribute) is lost. I therefore wanted to know how could I save my trained models locally.
Thank you in advance for your help !
All reactions