Reputation: 301
I have trained SVM image classifier using sklearn. Assignment requirement is to make separate "prediction.py" function which takes an image and classifies it. Generally it's done by clf.predict() but how can I get values of learnt coefficients so that I may transfer them to predict.py function?
Upvotes: 0
Views: 282
Reputation: 6259
The Scikit learn documentation addresses this, see https://scikit-learn.org/stable/modules/model_persistence.html
Upvotes: 1