dicee.executer
Classes
A class for Training, Retraining and Evaluation a model. |
|
A subclass of Execute Class for retraining |
Module Contents
- class dicee.executer.Execute(args, continuous_training=False)
A class for Training, Retraining and Evaluation a model.
Loading & Preprocessing & Serializing input data.
Training & Validation & Testing
Storing all necessary info
- distributed
- args
- is_continual_training = False
- trainer = None
- trained_model = None
- knowledge_graph = None
- report
- evaluator = None
- start_time = None
- is_rank_zero() bool
- cleanup()
- setup_executor() None
- create_and_store_kg()
- load_from_memmap()
- save_trained_model() None
Save a knowledge graph embedding model
Send model to eval mode and cpu.
Store the memory footprint of the model.
Save the model into disk.
Update the stats of KG again ?
Parameter
- rtype:
None
- end(form_of_labelling: str) dict
End training
Store trained model.
Report runtimes.
Eval model if required.
Parameter
- rtype:
A dict containing information about the training and/or evaluation
- write_report() None
Report training related information in a report.json file
- class dicee.executer.ContinuousExecute(args)
Bases:
ExecuteA subclass of Execute Class for retraining
Loading & Preprocessing & Serializing input data.
Training & Validation & Testing
Storing all necessary info
During the continual learning we can only modify * num_epochs * parameter. Trained model stored in the same folder as the seed model for the training. Trained model is noted with the current time.