graph_classification icon indicating copy to clipboard operation
graph_classification copied to clipboard

How can I see the history of loss?

Open Syzseisus opened this issue 4 years ago • 3 comments

Hi. I'm new to Pytorch lightning, so I don't know how to get the history of loss.
In the default setting, is it saving the history?
I found metric_hist variable, but I can't find that it saves this variable.

By the way, I'm taught a lot from your code. Thank you very much.

Syzseisus avatar May 19 '22 12:05 Syzseisus

Use some logger.

You can simply log to csv files, but I'd recommend you to use cloud logger like wandb or neptune.

For example:

python run.py logger=csv

python run.py logger=wandb

ashleve avatar May 19 '22 13:05 ashleve

By the way this code is a little outdated, I'd recommend you to take a look at the template it's based on if you want to learn lightning and hydra https://github.com/ashleve/lightning-hydra-template

ashleve avatar May 19 '22 13:05 ashleve

@ashleve Thanks for your quick and helpful answer!

Syzseisus avatar May 19 '22 15:05 Syzseisus