Last answered:

08 Oct 2020

Posted on:

01 Oct 2020

0

Keyword argument error

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?

 
1 answers ( 0 marked as helpful)
Instructor
Posted on:

08 Oct 2020

0
Hi Mark, 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. Best, The 365 Team

Submit an answer