MousaviSajad / ECG-Heartbeat-Classification-seq2seq-model

Inter- and intra- patient ECG heartbeat classification for arrhythmia detection: a sequence to sequence deep learning approach
Other
179 stars 54 forks source link

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

Open JaneW4869 opened 3 years ago

JaneW4869 commented 3 years ago

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}"?