[Tutor] Explanation of smote and upsampling
Tariq Khasiri
tariqkhasiri at gmail.com
Sun Nov 28 18:03:59 EST 2021
‘’’
oversample = SMOTE()X, y =
oversample.fit_resample(c_data[c_data.columns[1:]],
c_data[c_data.columns[0]])usampled_df = X.assign(Churn = y)
‘’’
Does this portion of code mean that I am upsampling column 0 and
column 1 of my data frame ( c_data ) ? Please kindly advise. Not
understanding this part of code —————-> c_data[c_data.columns[1:]
More information about the Tutor
mailing list