handling the training of the network model
Definition at line 450 of file tensorflow_dnn_model.py.
◆ __init__()
def __init__ |
( |
|
self, |
|
|
|
model, |
|
|
|
data_set, |
|
|
|
log_dir = None , |
|
|
|
save_name = None , |
|
|
|
monitoring_size = 10000 |
|
) |
| |
class to train a predefined model
:param model: DefaultModel obj
:param data_set: TFData obj
:param log_dir: str, directory name of tensorboard logging
:param save_name: str, path and name for saving the weightfiles
:param monitoring_size: int, number of events of training fraction used for monitoring
Definition at line 455 of file tensorflow_dnn_model.py.
◆ _closing_ops()
◆ _prepare_monitoring()
def _prepare_monitoring |
( |
|
self | ) |
|
|
private |
checking dataset sizes for evaluation. These samples are used after each epoch to collect
summary statistics and test early stopping criteria.
Definition at line 508 of file tensorflow_dnn_model.py.
◆ _prepare_tensorboard()
def _prepare_tensorboard |
( |
|
self, |
|
|
|
log_dir |
|
) |
| |
|
private |
◆ _save_best_state()
def _save_best_state |
( |
|
self, |
|
|
|
cross_entropy |
|
) |
| |
|
private |
save model as a checkpoint only if a global minimum is reached on validation sample
:return:
Definition at line 607 of file tensorflow_dnn_model.py.
◆ _train_epoch()
def _train_epoch |
( |
|
self, |
|
|
|
current_epoch |
|
) |
| |
|
private |
◆ train_model()
The documentation for this class was generated from the following file: