Skip to content

Use more complex data in test_roc_curve_display.py #31243

@lucyleeow

Description

@lucyleeow

data_binary fixture in test_roc_curve_display.py, which uses the iris dataset:

def data_binary(data):
X, y = data
return X[y < 2], y[y < 2]

always gives a AUC value of 1.0 (with and without drop_intermediate). Should we consider using more complex data?

Noticed in #30399 (comment)

cc @glemaitre

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