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

some features are missing after resampling #22

Open
Evan-Ning opened this issue Oct 2, 2021 · 0 comments
Open

some features are missing after resampling #22

Evan-Ning opened this issue Oct 2, 2021 · 0 comments

Comments

@Evan-Ning
Copy link

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.
Screen Shot 2021-10-03 at 1 47 41 AM
Screen Shot 2021-10-03 at 1 47 50 AM
)
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']

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