I am running a machine learning model on credit card fraud. I am using SMOTE to resample the data. Here is my synta:
# Define which resampling method and which ML model to use in the pipeline
resampling = SMOTE(kind=’borderline2′)
model = LogisticRegression(solver=’liblinear’)
Here is my error:
TypeError: __init__() got an unexpected keyword argument 'kind'
Can someone help with this error?
What library are you using for SMOTE? Obviously the class is not initiated with an argument “kind”. However, to help out, we’d need to see the documentation of the SMOTE class you are using.
The 365 Team