Add Drift Detector Benchmarker Prototype#17
Draft
yuji3w wants to merge 4 commits intologlabs:mainfrom
Draft
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) |
Collaborator
There was a problem hiding this comment.
Why astype(float) before astype(int)?
Contributor
Author
There was a problem hiding this comment.
I needed to massage the type conversions because int("1.0") is invalid but int(float("1.0")) is valid.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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).