|
template<typename T > |
static void | callMethod (std::shared_ptr< T > callback, const std::string &methodName, Model &model) |
| Calls the method of the callback with the given logs.
|
|
static void | checkMetric (const std::string &metric, const std::vector< std::string > &metrics) |
|
static std::unordered_map< std::string, Logs > | getLogs (Model &model) |
|
◆ onBatchBegin()
void NeuralNet::ModelCheckpoint::onBatchBegin |
( |
Model & | model | ) |
|
|
inlineoverridevirtual |
◆ onBatchEnd()
void NeuralNet::ModelCheckpoint::onBatchEnd |
( |
Model & | model | ) |
|
|
inlineoverridevirtual |
◆ onEpochBegin()
void NeuralNet::ModelCheckpoint::onEpochBegin |
( |
Model & | model | ) |
|
|
inlineoverridevirtual |
◆ onEpochEnd()
void NeuralNet::ModelCheckpoint::onEpochEnd |
( |
Model & | model | ) |
|
|
inlineoverridevirtual |
This method will be called at the end of each epoch.
- Parameters
-
epoch | The current epoch |
logs | The logs of the current epoch |
- Returns
- Returns true if the training should continue otherwise returns false
- Warning
- The order of the logs should be the same as the order of the metrics.
Implements NeuralNet::Callback.
◆ onTrainBegin()
void NeuralNet::ModelCheckpoint::onTrainBegin |
( |
Model & | model | ) |
|
|
inlineoverridevirtual |
◆ onTrainEnd()
void NeuralNet::ModelCheckpoint::onTrainEnd |
( |
Model & | model | ) |
|
|
inlineoverridevirtual |
The documentation for this class was generated from the following file: