gigl.src.training.v1.lib.base_trainer#
Attributes#
Classes#
| The Protocol that you need to implement for your trainer to function with Training | 
Module Contents#
- class gigl.src.training.v1.lib.base_trainer.BaseTrainer[source]#
- Bases: - gigl.src.common.types.model.BaseModelOperationsProtocol- The Protocol that you need to implement for your trainer to function with Training in tabularized mode. - Note: the BaseTrainer class also implements the - gigl.src.common.types.model.BaseModelOperationsProtocolwhich requires the init_model method, and the getter and setter for the model property.- abstract eval(gbml_config_pb_wrapper, device)[source]#
- Parameters:
- gbml_config_pb_wrapper (gigl.src.common.types.pb_wrappers.gbml_config.GbmlConfigPbWrapper) 
- device (torch.device) 
 
- Return type:
- gigl.src.common.types.model_eval_metrics.EvalMetricsCollection 
 
 - abstract train(gbml_config_pb_wrapper, device, profiler=None)[source]#
- Parameters:
- gbml_config_pb_wrapper (gigl.src.common.types.pb_wrappers.gbml_config.GbmlConfigPbWrapper) 
- device (torch.device) 
- profiler (Optional[gigl.src.common.modeling_task_specs.utils.profiler_wrapper.TorchProfiler]) 
 
- Return type:
- None 
 
 
