[scikit-learn] ask a question about weights for features in svc with rbf kernel
Rujing Zha
charujing123 at 163.com
Mon Jan 20 09:52:26 EST 2020
Hi Guillaume
Is it OK for rbf kernel? As the document said: Weights assigned to the features (coefficients in the primal problem). This is only available in the case of a linear kernel.
At 2020-01-20 20:30:53, "Guillaume Lemaître" <g.lemaitre58 at gmail.com> wrote:
You can look at the attribute coef_ once your model is fitted.
Sent from my phone - sorry to be brief and potential misspell.
|
From: charujing123 at 163.com
Sent: 20 January 2020 12:32
To: scikit-learn at python.org
Reply to: scikit-learn at python.org
Subject: [scikit-learn] ask a question about weights for features in svc with rbf kernel
|
Hi experts and users,
I am going to extact the pattern of svc. But I do not know how to extract weights for each feature using this svc classifiers with kernel of rbf function.
Thank you.
Rujing
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-learn/attachments/20200120/2f1aa52a/attachment.html>
More information about the scikit-learn
mailing list