-
Notifications
You must be signed in to change notification settings - Fork 2
Add Drift Detector Benchmarker Prototype #17
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
base: main
Are you sure you want to change the base?
Conversation
1. Add f1, accuracy scores to CSV 2. Aggregate CSVs 3. Track runtimes for each method 4. All methods now ready for use
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
`tip_amount` leaks information to `tip_percent_greater_15`
df.loc[df['vendorid'] == '2', 'vendorid'] = 2 | ||
df.loc[df['vendorid'] == '2.0', 'vendorid'] = 2 | ||
# Correct string type confusion in vendorid, payment_type | ||
df['vendorid'] = df['vendorid'].astype(float).astype(int) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why astype(float)
before astype(int)
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I needed to massage the type conversions because int("1.0") is invalid but int(float("1.0")) is valid.
The objective of the drift detector benchmarker is to create an easy-to-use framework that benchmarks data drift detection methods. The benchmarked currently uses the NYC taxi dataset.
Key features:
Created benchmarking framework, allowing easy testing of the following drift detectors created in this pr:
Created graphing utility, allowing for plotting inter-week drift on a feature-wise level
Created accessor class and factory, allows for easy access to data frame data.
Created batch loader for loading large date ranges (especially greater than 1 year).