trw.callbacks.callback_epoch_summary

Module Contents

Classes

CallbackEpochSummary

Summarizes the last epoch and display useful information such as metric per dataset/split

Functions

update_best_so_far(epoch, best_so_far, dataset_name, split_name, output_name, category_name, category_value)

Update the best so far category update value

trw.callbacks.callback_epoch_summary.update_best_so_far(epoch, best_so_far, dataset_name, split_name, output_name, category_name, category_value)

Update the best so far category update value :param epoch: the current epoch :param best_so_far: the store of the best so far values :param dataset_name: the dataset name :param split_name: the split name :param output_name: the output name :param category_name: the category name :param category_value: the value of the category :return: a tuple epoch, None if no previous data, else a tuple epoch, value representing the best category value

class trw.callbacks.callback_epoch_summary.CallbackEpochSummary(logger=log_and_print, track_best_so_far=True)

Bases: trw.callbacks.callback.Callback

Summarizes the last epoch and display useful information such as metric per dataset/split

__call__(self, options, history, model, losses, outputs, datasets, datasets_infos, callbacks_per_batch, **kwargs)