Thanks to visit codestin.com
Credit goes to github.com

Skip to content

OVR(SVC()) fails with decision_function_shape="ovr" #5495

@amueller

Description

@amueller

This fails in predict:

from sklearn.svm import SVC
from sklearn.multiclass import OneVsRestClassifier

from sklearn.datasets import make_blobs

X, y = make_blobs()

clf = OneVsRestClassifier(SVC(decision_function_shape='ovr')).fit(X, y)
clf.predict(X)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions