Logging Validation loss in fine-grained level in Tensorboard logger. #559
-
I wanted to log both the train and validation loss and other metrics similar to training loss (which is the default). I have looked into Strategy Logger but not very sure how to log both validation and training info. I ideally wanted some graph-like the following, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 13 replies
-
Hi @akashtadwai ! The quickest way to produce a combined plot like that requires to use W&B Logger. The logger produces separate plots but the web interface allows you to combine them very easily. Alternatively, you can create a custom logger which internally stores the metric values based on the name. E.g. For ad-hoc plots, the best way is to logs values in a file (you can use Let me know if you need further help on this 😄 |
Beta Was this translation helpful? Give feedback.
-
I see. You are evaluating on the test stream so the values are put in the related curve of @lrzpellegrini can you provide him a short way to build the validation stream? |
Beta Was this translation helpful? Give feedback.
I see. You are evaluating on the test stream so the values are put in the related curve of
eval_phase/test_stream
. You should see more points there than you'd expect.You can call the periodic eval on a separate validation stream and that should appear separated from the rest of the curves.
Currently, the periodic eval within training is just a regular eval.
@lrzpellegrini can you provide him a short way to build the validation stream?
@AntonioCarta I think this may cause future misunderstanding. Should we better document it inside the training tutorial? I can then point to it in the evaluation and logging tutorial.