8000 Adding ``classes_`` to svm makes my head hurt · Issue #1037 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

Adding classes_ to svm makes my head hurt #1037

@amueller

Description

@amueller

I couldn't figure out to add support for arbitrary class labels to the SVMs and add a classes_ attribute.
I'm moving to other stuff for the moment, it would be great if someone found some time for this.

The trouble comes with class_weight and regression. I think it would be good to add a LabelEncoder somewhere to take care of the encoding of the class_weights. But apparently the implementation also requires a class-weights on the python side in the regression case. And the LabelEncoder should obviously not be used in the SVR.

This is doable but I couldn't make it pretty so I just left it :-/

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementModerateAnything that requires some knowledge of conventions and best practices

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0