27 #ifndef LBANN_CALLBACKS_CALLBACK_CHECK_METRIC_HPP_INCLUDED 28 #define LBANN_CALLBACKS_CALLBACK_CHECK_METRIC_HPP_INCLUDED 43 std::set<execution_mode> modes,
46 bool error_on_failure);
48 std::string
name()
const override {
return "check metric"; }
58 template <
class Archive>
91 std::unique_ptr<callback_base>
93 std::shared_ptr<lbann_summary>
const&);
98 #endif // LBANN_CALLBACKS_CALLBACK_CHECK_METRIC_HPP_INCLUDED void on_epoch_end(model *m) override
Called immediate after the end of each epoch.
std::unique_ptr< callback_base > build_check_metric_callback_from_pbuf(const google::protobuf::Message &, std::shared_ptr< lbann_summary > const &)
check_metric * copy() const override
void on_validation_end(model *m) override
Called immediately after the end of validation.
std::string m_metric_name
void on_test_end(model *m) override
Called immediately after the end of testing.
std::set< execution_mode > m_modes
Base class for callbacks during training/testing.
std::string name() const override
Return this callback's name.
Abstract base class for neural network models.
void write_specific_proto(lbann_data::Callback &proto) const final
friend class cereal::access
void serialize(Archive &ar)
Store state to archive for checkpoint and restart.
void do_check_metric(const model &m) const