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

cross validation and step_smote(): smote_impl Not enough observations #103

Closed
Steviey opened this issue Aug 3, 2022 · 2 comments
Closed

Comments

@Steviey
Copy link

Steviey commented Aug 3, 2022

Using recipe >> themis::step_smote() produces this, while cross validation...

x Fold6: preprocessor 1/1: Error in smote_impl():
! Not enough observations of '4' to perform SMOTE.

How can I avoid it? The data is already stratisfied.

@EmilHvitfeldt
Copy link
Member

Hello @Steviey 👋

You are getting this error because there are less than neighbors + 1 observations in class with the name '4'. I'm afraid that there isn't much to do in this situations. That isn't a lot of observations in a minority class.

@github-actions
Copy link

This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.

@github-actions github-actions bot locked and limited conversation to collaborators Mar 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants