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

where is the parameter of epoch #27

Closed
mingyangligithub opened this issue Apr 12, 2023 · 3 comments
Closed

where is the parameter of epoch #27

mingyangligithub opened this issue Apr 12, 2023 · 3 comments

Comments

@mingyangligithub
Copy link

Dear Authors,

Thanks for your work, which provide much convenience for reproducing the KGE works. I met a problem when I reproduced the models. I found I can't change the epoch by changing the num_epoch in config. Could you give me some suggestions?

Many thanks,
Best wishes

@mingyangligithub
Copy link
Author

The epoch doesn't depend on the setting num_epoch. Learning rate and early_stop_patience influence the total epoch.

@mingyangligithub
Copy link
Author

I think there should be a threshold. Early_stop_patience only works when it meets the threshold. Is it correct?

@Modberge
Copy link
Collaborator

Thanks for your interest in our work! Actually, the maximum training epoch of NeuralKG is determined by num_epoch and early_stop_patient. In order to prevent model overfitting, we set early_stop_patience to decide whether to terminate the model early or not. If you want to train this model on a fixed epoch, you can simply set early_stop_patient to a large number (greater than num_epoch). I hope this will be of help to you :)

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