Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AUC important but easy to understand why #63

Closed
guillaume-vignal opened this issue Sep 17, 2024 · 0 comments · Fixed by #64
Closed

AUC important but easy to understand why #63

guillaume-vignal opened this issue Sep 17, 2024 · 0 comments · Fixed by #64
Assignees

Comments

@guillaume-vignal
Copy link
Collaborator

guillaume-vignal commented Sep 17, 2024

In some cases, the difference comes from interactions between variables and not from a single variable.

import numpy as np
import pandas as pd

df1 = pd.concat(
    [
        pd.DataFrame(
            np.zeros((10000, 2)),
            columns=["A", "B"],
        ),
        pd.DataFrame(
            np.ones((10000, 2)),
            columns=["A", "B"],
        )
    ]
)

df2 = pd.DataFrame()
df2["A"] = df1["A"].sample(frac=1).reset_index(drop=True)
df2["B"] = df1["B"].sample(frac=1).reset_index(drop=True)

An interaction plot would be helpful to understand what's going on behind the scenes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant