wandb.summary
Last updated
Last updated
Tracks single values for each metric for each run.
By default, a metric's summary is the last value of its History.
For example, wandb.log({'accuracy': 0.9})
will add a new step to History and update Summary to the latest value. In some cases, it's more useful to have the maximum or minimum of a metric instead of the final value. You can set history manually (wandb.summary['accuracy'] = best_acc)
.
In the UI, summary metrics appear in the table to compare across runs. Summary metrics are also used in visualizations like the scatter plot and parallel coordinates chart.
After training has completed, you may want to save evaluation metrics to a run. Summary can handle numpy arrays and PyTorch/TensorFlow tensors. When you save one of these types to Summary, we persist the entire tensor in a binary file and store high level metrics in the summary object, such as min, mean, variance, and 95th percentile.