Last active
November 21, 2020 18:01
-
-
Save ngmars/cc5a6ad8513e443334903e5c6d95d4dd to your computer and use it in GitHub Desktop.
saving weights as a .h5 file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import joblib | |
#fitting the clf variable to the training data | |
clf.fit(y_train, X_train) | |
#saving weights into a .sav file | |
weight = 'new_model.sav' | |
joblib.dump(clf, weight) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment