Talha Yousuf
Talha Yousuf

Reputation: 301

How to extract and transfer learnt parameters in svm(scikit)?

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

Answers (1)

Jon Nordby
Jon Nordby

Reputation: 6259

The Scikit learn documentation addresses this, see https://scikit-learn.org/stable/modules/model_persistence.html

Upvotes: 1

Related Questions