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 I save the data generated by timeGAN? #322

Open
AnthonyFang623 opened this issue Jan 1, 2024 · 1 comment
Open

How can I save the data generated by timeGAN? #322

AnthonyFang623 opened this issue Jan 1, 2024 · 1 comment

Comments

@AnthonyFang623
Copy link

Hi, I refer to the code template in the example to train my own data using the timeGAN model, and it worked perfectly. Thanks for the hard working that makes it easy for us to use the TimeGAN model.

But I have encountered one problem, I don't know how to save the generated data.

Because at the begining, there is a parameter seq_len = 24 # Timesteps . The original shape of my csv file is (3000, 7), column: date, T1, T2, ... , T6. After begining, the shape became (2976, 24, 6), when i use .to_csv, the shape didn't match.

I know the shape change is from shift sampling every 24 lines, how can I aggregate the generated data in the original shape (3000,7), column: date, T1, T2, ... , T6, and save it as csv file?

@JiaSong1997
Copy link

Have you solved the problem?

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