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

Fixing random seed to reproduce the same results #57

Open
kveerama opened this issue Aug 2, 2020 · 2 comments
Open

Fixing random seed to reproduce the same results #57

kveerama opened this issue Aug 2, 2020 · 2 comments

Comments

@kveerama
Copy link

kveerama commented Aug 2, 2020

A question about your TGAN code. We need to avoid any randomness for reproducibility purposes. We were wondering if there is a way to avoid this? We have tried to set the random seed, but it seems like there is randomness involved somewhere that we can not control over. We will appreciate your response.

@kveerama
Copy link
Author

kveerama commented Aug 2, 2020

From @leix28 The randomness comes from the data transformation

https://github.com/sdv-dev/TGAN/blob/master/tgan/data.py#L239.

TGAN fits Gaussian Mixture models (GMM) on all continuous columns and transforms those columns. We use the GMM implementation in sklearn. To eliminate all randomness, you can implement the save and load function in MultiModalNumberTransformer to fix the transformation.

@zihaohe123
Copy link

Hi, we tried to fix the random seed here in GaussianMixtureModel but still there's randomness. Also, could you explain more about how to "implement the save and load function in MultiModalNumberTransformer to fix the transformation"? Thanks for your time.

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

2 participants