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

How can we create more synthetic data? #77

Open
limhasic opened this issue Apr 29, 2024 · 1 comment
Open

How can we create more synthetic data? #77

limhasic opened this issue Apr 29, 2024 · 1 comment

Comments

@limhasic
Copy link

i tried

child_samples = child_model.sample(
    n_samples = len(child_df),
    input_unique_ids=parent_samples[join_on],
    input_df=parent_samples.drop(join_on, axis=1),
    gen_batch=64,
     )

but, n_samples = len(child_df), wasn't work

@limhasic
Copy link
Author

limhasic commented Apr 29, 2024

Is this the only alternative?

child_samples = [] for n_child, df in parent_samples.sort_values("n_child").groupby("n_child"): \ print(n_child) _child_samples = child_rtf.sample(input_unique_ids=df[join_on], input_df=df.drop(join_on, axis=1),gen_batch=64) child_samples.append(_child_samples)

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