Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

__init__() got an unexpected keyword argument 'ratio #9

Open
JaneW4869 opened this issue Jul 12, 2021 · 0 comments
Open

__init__() got an unexpected keyword argument 'ratio #9

JaneW4869 opened this issue Jul 12, 2021 · 0 comments

Comments

@JaneW4869
Copy link

Hello, when I run the seq_seq_annot_aami.py, the terminal shows
" sm = SMOTE(random_state=12, ratio=ratio)
File "E:\Sensor\tensor\envs\tensorflow\lib\site-packages\imblearn\utils_validation.py", line 594, in inner_f
return f(**kwargs)
TypeError: init() got an unexpected keyword argument 'ratio'
"

Is there something wrong in"ratio = {0: n_oversampling, 1: nums[1], 2: n_oversampling, 3: n_oversampling}"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant