CreditCard_Fraud_Detection icon indicating copy to clipboard operation
CreditCard_Fraud_Detection copied to clipboard

Update Creditcard_fraud_detection.py

Open LouXM1874 opened this issue 3 years ago • 0 comments

将os_features, os_labels = oversampler.fit_sample(features_train, labels_train)修改为os_features, os_labels = oversampler.fit_resample(features_train, labels_train) 现在的版本为imbalanced-learn(0.8.0) 用原来的报错AttributeError: 'SMOTE' object has no attribute 'fit_sample' (现在要用到机器学习,正在学,感谢大佬上传的代码)

LouXM1874 avatar Jun 07 '21 09:06 LouXM1874