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

can the loss or some information during training be shown? #510

Open
823858275 opened this issue Oct 20, 2020 · 3 comments
Open

can the loss or some information during training be shown? #510

823858275 opened this issue Oct 20, 2020 · 3 comments

Comments

@823858275
Copy link

i use model.fit() to train the model, but it doesn't show the detail of training, such as loss. I don't find some parameter to show those information.can the loss or some information during training be shown?

@nreimers
Copy link
Member

You can pass an evaluator to the fit method, as shown here:
https://github.com/UKPLab/sentence-transformers/blob/master/examples/training/nli/training_nli.py

The evaluator is called every evaluation_steps and computes whatever scores you like. Usually I use it to compute scores (like accuracy, correlation) on some held-out dev set.

@iamlockelightning
Copy link

Hi, @nreimers . Can it just return the training loss values during fit? (On progress bar, or logging to file/std, or Tensorboard support, ...)

I don't have a held-out dev set. Just want to monitor the training process.

@Rj7
Copy link

Rj7 commented Jul 17, 2021

@nreimers This would really useful for Unsupervised learning.

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

4 participants