Artificial Intelligence, Machine Learning, Math, Computer Science, Software Engineering.
Scikit-Learn) which can be installed as follows: pip install imbalanced-learn We can then import the SMOTE class. from imblearn.over_sampling import SMOTE To avoid confusion, we read the csv file again. df = pd.read_csv("creditcard.csv") df = df.drop(['Time'], axis=1) X = df.drop(['Class'], axis=1)