# Accessing logged values in a callback during run

**URL:** <https://community.wandb.ai/t/accessing-logged-values-in-a-callback-during-run/2527>\
**Category:** W&B Help\
**Created:** [June 1, 2022, 6:26pm UTC](https://community.wandb.ai/t/accessing-logged-values-in-a-callback-during-run/2527 "2022-06-01T18:26:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shababo](https://avatars.discourse-cdn.com/v4/letter/s/45deac/32.png) [@shababo](https://community.wandb.ai/u/shababo)\
**Post date:** [June 1, 2022, 6:26pm UTC](https://community.wandb.ai/t/accessing-logged-values-in-a-callback-during-run/2527/1 "2022-06-01T18:26:21Z")

</div>

Hi-

I’m trying to access a logged value during a run (in a callback). When I examine `run.summary` it does not seem to have any of the values logged by `self.log` in either `train_step()` or `validation_step()`. Is there a correct pattern for accessing logged values during a run.

My use case is trying to keep track of the minimum of a metric. I already use `define_metric`, but I want to see the minimum as a plot over `step` or `epoch` as opposed to just in the summary. Essentially trying to call `torchmetrics.MinMetric` in the `on_validation_epoch_end()` callback - but to update that metric I need to feed it the previously logged value for another metric.

Thanks.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/wandb/original/1X/366b649231631dbab896843020da0056074ac79d.png) [@system](https://community.wandb.ai/u/system)\
**Post date:** [July 31, 2022, 6:27pm UTC](https://community.wandb.ai/t/accessing-logged-values-in-a-callback-during-run/2527/2 "2022-07-31T18:27:19Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
