#include <metric.hpp>
Metric statistics.
Definition at line 46 of file metric.hpp.
◆ metric_statistics() [1/3]
| lbann::metric_statistics::metric_statistics |
( |
| ) |
|
|
inline |
Default constructor.
Definition at line 53 of file metric.hpp.
◆ metric_statistics() [2/3]
◆ metric_statistics() [3/3]
◆ ~metric_statistics()
| lbann::metric_statistics::~metric_statistics |
( |
| ) |
|
|
default |
◆ add_value()
| void lbann::metric_statistics::add_value |
( |
EvalType |
value, |
|
|
int |
num_samples = 1 |
|
) |
| |
Add metric value to statistics.
◆ get_mean()
| EvalType lbann::metric_statistics::get_mean |
( |
| ) |
const |
Get mean metric value. If mini-batch sizes are not identical, the mean is over the sample values rather than over the mini-batch mean values.
◆ get_num_samples()
| int lbann::metric_statistics::get_num_samples |
( |
| ) |
const |
|
inline |
Get number of samples.
Definition at line 77 of file metric.hpp.
◆ operator=() [1/2]
Move assignment operator.
◆ operator=() [2/2]
Copy assignment operator.
◆ reset()
| void lbann::metric_statistics::reset |
( |
| ) |
|
◆ serialize()
template<class Archive >
| void lbann::metric_statistics::serialize |
( |
Archive & |
ar | ) |
|
Archive for checkpoint and restart
◆ m_num_samples
| int lbann::metric_statistics::m_num_samples |
Number of samples.
Definition at line 51 of file metric.hpp.
◆ m_sum
| EvalType lbann::metric_statistics::m_sum |
Sum of metric values.
Definition at line 49 of file metric.hpp.
The documentation for this struct was generated from the following file: