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

Error: missing the following mandatory columns: ..stratum_wt #847

Open
invain1218 opened this issue Nov 18, 2024 · 0 comments
Open

Error: missing the following mandatory columns: ..stratum_wt #847

invain1218 opened this issue Nov 18, 2024 · 0 comments

Comments

@invain1218
Copy link

invain1218 commented Nov 18, 2024

I am currently using the "smote" pipeline in my project to balance my dataset, which includes a strata variable. The tsk$strata is set to use the feature "wt" for stratification, and the target variable is vs (binary: 0-1).

Here's the code snippet I am using:

pob = po("encode") %>>% po("smote")
pro_tsk = pob$train(train_tsk)[[1]]

However, I encountered the following error:

Cannot rbind data to task 'classification', missing the following mandatory columns: ..stratum_wt
This happened in PipeOp traindata's $train()

It seems the issue is related to the missing strata variable during the pipeline execution. But I can't fix it.
Thank you in advance for your help! 😊

@invain1218 invain1218 changed the title Imbalance Data when I add strata Error: missing the following mandatory columns: ..stratum_wt Nov 18, 2024
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