Persist trained Plexe models to disk and load them back for later use.
plexe.Model
(model.state == ModelState.READY
), you can save its state, including the trained predictor, source code, artifacts, and metadata, to a file. You can then load this file later to reuse the model without rebuilding it.
Plexe saves models as .tar.gz
archives.
plexe.save_model()
function.
save_model
function requires the full path including the .tar.gz
extension. It will create the necessary parent directories if they don’t exist..joblib
, .pkl
, .pt
)plexe.load_model()
function, providing the path to the .tar.gz
archive.
plexe.Model
instance, including its state, predictor, and associated data, allowing you to immediately use it for inference or further inspection.