fjxmlzn / DoppelGANger

[IMC 2020 (Best Paper Finalist)] Using GANs for Sharing Networked Time Series Data: Challenges, Initial Promise, and Open Questions
http://arxiv.org/abs/1909.13403
BSD 3-Clause Clear License
296 stars 75 forks source link

How to pre-specify the length of features #17

Closed 89ng closed 3 years ago

89ng commented 3 years ago

Thank you for the great work again! Now since I just have a small amount of training data with fixed length, I would like to pre-specify the length of features to reduce the difficulty of training a bit, but I have no clue how to do that. I noticed in issue #7 https://github.com/fjxmlzn/DoppelGANger/issues/7, you mentioned it could be achieved via minor code change, could you please give me some suggestions on how to do so? Thank you so much in advance!

fjxmlzn commented 3 years ago

You will need to overwrite cur_gen_flag https://github.com/fjxmlzn/DoppelGANger/blob/ab2d20e48a30bcf44aab98e9ec419cd68f1195e6/gan/network.py#L400 with ones, so that the network will ignore generation flags and keep generating till the maximum length.