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

Training goes on infinitely #16

Open
naveen-kinnal opened this issue Jun 19, 2021 · 3 comments
Open

Training goes on infinitely #16

naveen-kinnal opened this issue Jun 19, 2021 · 3 comments

Comments

@naveen-kinnal
Copy link

naveen-kinnal commented Jun 19, 2021

Hello,

I see that the training for the YELP dataset goes on infinitely since the training in main.py has the condition 'while true'. May I know how many epochs should we train?

@jxhe
Copy link
Collaborator

jxhe commented Jun 20, 2021

Hi,

The training will end automatically when the val loss stops decreasing several times, as controlled here:

if args.patience >= 0:

You can reduce the patience number to make it end more quickly

@naveen-kinnal
Copy link
Author

Thank you. I have another question

  1. Why is the 'dev_src_file' and 'dev_trg_ref' the same?
  2. If the src_file contains the negative sentences, the trg_file will contain the negative attributes?

@jxhe
Copy link
Collaborator

jxhe commented Jul 28, 2021

Can you clarify where "dev_src_file" and "dev_trg_ref" are?

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