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

Question: Targetdrift doesn't detect drift when trend is reversed. #1080

Open
PranavKhedkar opened this issue Apr 19, 2024 · 0 comments
Open

Comments

@PranavKhedkar
Copy link

Hello,
I am using two pandas dataframe:
data1 = {
'Sqft': [600, 700, 800, 900, 1000],
'Price': [235000, 255000, 293350, 321200, 350000]
}
df1 = pd.DataFrame(data1)

data2 = {
'Sqft': [600, 700, 800, 900, 1000],
'Price': [350000, 321200, 293350, 255000, 235000]
}
df2 = pd.DataFrame(data2)

The target here is price. The second dataframe has exact opposite trend as compared to the first. Yet, when I try to use TargetDriftPreset, drift score remains 1 and drift is not detected. Am I doing something wrong?

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

No branches or pull requests

1 participant