You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thanks for the package. I'm running into this problem. I have a dataframe with 20 columns/ features. It seems that after resampling with smogn, I end up with only 15 columns.
)
My code looks like this:
rg_mtrx = [
[40, 1, 0], ## over-sample ("minority")
[0, 0, 0], ## under-sample ("majority")
]
train_set_smogn=smogn.smoter(
data=train_set.reset_index(drop=True),
y='count',
#k=10,
k=5,
pert=0.04,
samp_method='extreme',
rel_thres = 0.1,
rel_method = "manual",
rel_xtrm_type = "high",
rel_coef = 0.01,
rel_ctrl_pts_rg = rg_mtrx
)
Hi, thanks for the package. I'm running into this problem. I have a dataframe with 20 columns/ features. It seems that after resampling with smogn, I end up with only 15 columns.
)
My code looks like this:
rg_mtrx = [
[40, 1, 0], ## over-sample ("minority")
[0, 0, 0], ## under-sample ("majority")
]
train_set_smogn=smogn.smoter(
data=train_set.reset_index(drop=True),
y='count',
#k=10,
k=5,
pert=0.04,
samp_method='extreme',
rel_thres = 0.1,
rel_method = "manual",
rel_xtrm_type = "high",
rel_coef = 0.01,
rel_ctrl_pts_rg = rg_mtrx
)
x_smogn=train_set_smogn
x_smogn=x_smogn.drop('count',axis=1)
y_smogn=train_set_smogn['count']
The text was updated successfully, but these errors were encountered: