Skip to content

RFECV with SVC & kernel != 'linear' == ValueError #5168

Closed
@jmwoloso

Description

@jmwoloso

I'm not even sure this is an issue worth mentioning, but thought I'd put it here in case anyone else ran into it. If you're specifying that SVC be used as the 'estimator' for RFECV and you have the SVC 'kernel' set to 'rbf', you'll get: "ValueError: coef_ is only available when using linear kernel". I haven't tested this with any other kernel setting like poly or sigmoid (my model is still running as I type this) but I imagine it would happen with anything where kernel != linear.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions