29 #ifndef LBANN_CALLBACKS_EARLY_STOPPING_HPP_INCLUDED 30 #define LBANN_CALLBACKS_EARLY_STOPPING_HPP_INCLUDED 33 #include <unordered_map> 34 #include <unordered_set> 54 std::string
name()
const override {
return "early stopping"; }
60 template <
class Archive>
81 std::unique_ptr<callback_base>
83 std::shared_ptr<lbann_summary>
const&);
88 #endif // LBANN_CALLBACKS_EARLY_STOPPING_HPP_INCLUDED
early_stopping * copy() const override
void serialize(Archive &ar)
Store state to archive for checkpoint and restart.
Base class for callbacks during training/testing.
Abstract base class for neural network models.
void write_specific_proto(lbann_data::Callback &proto) const final
std::unique_ptr< callback_base > build_early_stopping_callback_from_pbuf(const google::protobuf::Message &, std::shared_ptr< lbann_summary > const &)
early_stopping & operator=(const early_stopping &)=default
std::string name() const override
Return this callback's name.
void on_validation_end(model *m) override
friend class cereal::access