# How to get the loss value from FluxTraining

**URL:** <https://discourse.julialang.org/t/how-to-get-the-loss-value-from-fluxtraining/114118>\
**Category:** General Usage\
**Tags:** fluxtraining\
**Created:** [May 10, 2024, 5:44pm UTC](https://discourse.julialang.org/t/how-to-get-the-loss-value-from-fluxtraining/114118 "2024-05-10T17:44:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cirobr](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cirobr/32/219994_2.png) [@cirobr](https://discourse.julialang.org/u/cirobr)\
**Post date:** [May 10, 2024, 5:44pm UTC](https://discourse.julialang.org/t/how-to-get-the-loss-value-from-fluxtraining/114118/1 "2024-05-10T17:44:36Z")

</div>

Cheers,

In FluxTraining.jl, may I please ask how do we get the calculated loss value after executing one epoch with the below instruction?

`epoch!(learner, ValidationPhase(), validset)`

Thanks!
