nickkunz / smogn

Synthetic Minority Over-Sampling Technique for Regression
https://pypi.org/project/smogn
GNU General Public License v3.0
319 stars 78 forks source link

IntCastingNaNError: Cannot convert non-finite values (NA or inf) to integer #49

Open thl456 opened 7 months ago

thl456 commented 7 months ago

I am trying to run the smogn on my dataframe that has already dropna. The settings of the parameters are as below:

ztg = smoter(data=ztg.reset_index(drop=True), y='FINAL_MARKS', 
             samp_method = 'extreme',drop_na_col=True,drop_na_row=True, replace=False,
            rel_xtrm_type= 'high', rel_coef = 2.25)

But I still get the error 'IntCastingNaNError: Cannot convert non-finite values (NA or inf) to integer', any solution to resolve the issue pls?