You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recommended when running in a container without a mounted volume and building models that take considerable time to reproduce.
614
+
It is recommened to use an artifiact registry to accession the best model, but this will preserve a redundant
615
+
copy in case accessioning it to a registry is unsuccessful.
616
+
"""
617
+
ifnotself.best_model_path:
618
+
returnValueError("The function purge_models_except_best_model was called prematurely: self.best_model_path is not set, maining there is no 'Best model'.")
Optionally, purges cache of models stored on disk.
637
+
638
+
Params:
639
+
- purge_model_storage_files Union[str, int]
640
+
- Set to 0: Does not purge the cached modelsl, just returns the best model.
641
+
- Set to 1: Purges all models except the best model found.
642
+
- Set to "slate": Removes all models, whether the best or otherwise.
643
+
When running ephemeral trials in a container without a mounted volume (to prevent
644
+
memory pressure accumulating from ephemeral files in memory) or are otherwise working
645
+
with hard disk space limitations, we recommend setting this:
646
+
- 'slate': if you are working on models that are quick to reproduce and an accidental model loss is not problematic as long as you have the parameters to reproduce it approximately.
647
+
- 1: If you are are workign on models that take considerable time to reproduce a given model or a small performance difference from another model from the same parameters is problematic.
648
+
- 0 If you have unlimited disk space and are not in a container or in one with a suitable mounted volume.
raiseValueError("The paramerter purge_model_storage_files in the method get_best_model() has 3 values: 0 (Don't purge),1 (Purge all but the best model), 'slate' (remove all cached models) ")
0 commit comments