Vowpal Wabbit
|
#include <metrics_collector.h>
Public Types | |
using | metrics_callback_fn = std::function< void(VW::metric_sink &)> |
Public Member Functions | |
metrics_collector (bool enabled=false) | |
bool | are_metrics_enabled () const |
void | register_metrics_callback (const metrics_callback_fn &callback) |
VW::metric_sink | collect_metrics (LEARNER::learner *l=nullptr) const |
using VW::metrics_collector::metrics_callback_fn = std::function<void(VW::metric_sink&)> |
VW::metrics_collector::metrics_collector | ( | bool | enabled = false | ) |
bool VW::metrics_collector::are_metrics_enabled | ( | ) | const |
VW::metric_sink VW::metrics_collector::collect_metrics | ( | LEARNER::learner * | l = nullptr | ) | const |
void VW::metrics_collector::register_metrics_callback | ( | const metrics_callback_fn & | callback | ) |