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

Synthpop freezes on dataset with factor attributes #20

Open
danielamartinezd02 opened this issue Mar 22, 2022 · 6 comments
Open

Synthpop freezes on dataset with factor attributes #20

danielamartinezd02 opened this issue Mar 22, 2022 · 6 comments

Comments

@danielamartinezd02
Copy link

danielamartinezd02 commented Mar 22, 2022

The synthetization process never finishes just freezes for a dataset with factor attributes, when there are more than 2 classes.
image
My R version is 4.1.2 and the synthpop version is 1.7.0.

@danielamartinezd02 danielamartinezd02 changed the title Synthpop freeze on dataset with factor attributes Synthpop freezes on dataset with factor attributes Mar 22, 2022
@gillian-raab
Copy link

gillian-raab commented Mar 22, 2022 via email

@danielamartinezd02
Copy link
Author

danielamartinezd02 commented Mar 23, 2022

Dear Gilian,

There is one attribute with lots of levels where it gets stuck ('Country'). However I also deleted it, and it is not the only one getting stuck also for 3 levels I am having problems. I attach the dataset I am trying to synthesize.
mental_health_train_data_all.csv and the line code that i am using is:
synthlist <- syn(real_df, method = 'cart', visit.sequence = 1:ncol(real_df), k = nrow(real_df), seed = myseed)
Best,
Daniela

@gillian-raab
Copy link

gillian-raab commented Mar 23, 2022 via email

@danielamartinezd02
Copy link
Author

Dear Gillian,

Thanks for your response. I will take a look to what you have suggested.

Best,
Daniela

@RebelOfDeath
Copy link

hey @danielamartinezd02, were you able to solve this problem? Because I've been having the exact same problem with the UCI Adult's Census Dataset.

@gillian-raab
Copy link

gillian-raab commented Nov 30, 2023 via email

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

3 participants