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 to train and generate from our own Data? #3

Closed
ghost opened this issue Sep 27, 2016 · 2 comments
Closed

How to train and generate from our own Data? #3

ghost opened this issue Sep 27, 2016 · 2 comments

Comments

@ghost
Copy link

ghost commented Sep 27, 2016

Can you provide any guidance on how to train and generate from my own data? I would like to try SeqGAN with various English poetry and prose, but I am not sure how to change this code to train on my own data and then generate new writing.

@LantaoYu
Copy link
Owner

LantaoYu commented Sep 27, 2016

In our code, a synthetic environment, we first initialize an oracle model and use it to generate the real data. In the real scenarios, you can just skip the oracle building step and real data generation step and directly load the English poetry data as the real data. Specifically, in https://github.com/LantaoYu/SeqGAN/blob/master/MLE_SeqGAN/sequence_gan.py#L155 , we use the oracle to generate the real data, which is a set of sequences of numbers(index), you can just skip this step and https://github.com/LantaoYu/SeqGAN/blob/master/MLE_SeqGAN/sequence_gan.py#L156 will load the given real data, i.e. the poetry sequences. Note that you should also remove the original evaluation function and use your own evaluation metric if necessary.

@Crista23
Copy link

Crista23 commented Jan 9, 2018

@jpcreamer @LantaoYu Could you please post the code for training on custom dataset?

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