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

Skip to content

ClassifierChain does not support GroupKFold #11429

Closed
@uatach

Description

@uatach
from sklearn.datasets import make_multilabel_classification
from sklearn.multioutput import ClassifierChain
from sklearn.linear_model import LogisticRegression
from sklearn.model_selection import GroupKFold

X, Y = make_multilabel_classification()
ClassifierChain(LogisticRegression(), 'random', cv=GroupKFold(3)).fit(X, Y)
# ValueError: The 'groups' parameter should not be None.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions