plugins.hf_seq_classification.module_classes
HfSeqClassificationModule Objects#
Task specific ModuleInterface used with a trainer.
The data and model properties must be set.
Arguments:
ModuleInterface[type] - [description]
__init__#
Initialize training module.
Arguments:
argsarguments.ModuleArguments - DataclassdataHfSeqClassificationDataInterface - PyMarlin data interfsce
on_end_val_epoch#
Compute metrics at the end of each val epoch. Metric function is specified by args.metric. values contains all values returned by val_step all_gathered over all processes and all steps