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)[source]
A class for Training, Retraining and Evaluation a model.
Loading & Preprocessing & Serializing input data.
Training & Validation & Testing
Storing all necessary info
- args
- is_continual_training = False
- trainer = None
- trained_model = None
- knowledge_graph = None
- report
- evaluator = None
- start_time = None
- save_trained_model() None [source]
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
- class dicee.executer.ContinuousExecute(args)[source]
Bases:
Execute
A 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.