[scikit-learn] ask a question about weights for features in svc with rbf kernel
Andreas Mueller
t3kcit at gmail.com
Tue Jan 21 20:28:14 EST 2020
There is no coef_ for kernel SVMs.
What exactly are you looking for?
On 1/20/20 9:52 AM, Rujing Zha wrote:
> 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
>
>
>
>
>
>
>
>
>
> _______________________________________________
> scikit-learn mailing list
> scikit-learn at python.org
> https://mail.python.org/mailman/listinfo/scikit-learn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-learn/attachments/20200121/905e385d/attachment.html>
More information about the scikit-learn
mailing list