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 use early stopping for saving the best train accuracy? #102

Open
hoangthangta opened this issue May 9, 2022 · 1 comment
Open

Comments

@hoangthangta
Copy link

hoangthangta commented May 9, 2022

Hello, I am looking for a way to save the best train accuracy. The only thing I saw in the training process is this line:

model = train_bert_multitask(
        problem = problem,
        num_epochs = EPOCHS,
        problem_type_dict = problem_type_dict,
        processing_fn_dict = processing_fn_dict,
        continue_training = False,
        params = params 
    )

How to intervene to the training loop?

@JayYip
Copy link
Owner

JayYip commented May 12, 2022

You should use callbacks.

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