py
py copied to clipboard
Applied undersampling,oversampling & smote for your Assignment 2
I implemented the whole code from scratch, And as you asked to give a pull request. So I did. Thank you for your great service.
F1 score for, Undersampling = 74% Oversampling = 78% smote = 81%
Hey, thanks for the pull request. Please make following changes,
- Rename the file to follow the snake case convention.
- Perform undersampling, oversampling, etc. on the training set, not the entire dataset. I know that's what I did in the original tutorial but that was an oversight. Ideally, we need to perform these operations on a training set only to avoid data leakage.
Sir, i renamed the file in snake case format. And only sampled data on train set. My latest push has the update.
I'm glad that, i'm following since 2021. And the pull request was 3 years ago and you are still reviewing it.