The 365 Data Science team is proud to invite you to our own community forum. A very well built system to support your queries, questions and give the chance to show your knowledge and help others in their path of becoming Data Science specialists.
Ask
Anybody can ask a question
Answer
Anybody can answer
Vote
The best answers are voted up and moderated by our team

Keyword argument error

Keyword argument error

0
Votes
1
Answer

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 Answer

365 Team
0
Votes

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