localexperimentcache
localexperimentcache ¶
Implementation of the ExperimentCache interface for local experiments.
Classes¶
ExperimentCache ¶
Bases: ABC
Interface for the experiment cache
Functions¶
__contains__
abstractmethod
¶
get_exp_count_in_cache
abstractmethod
¶
load_exp_info
abstractmethod
¶
load_experiment
abstractmethod
¶
Loads the experiment from the cache
save_experiment
abstractmethod
¶
should_reload ¶
Checks if the experiment should be reloaded
Source code in niceml/experiments/localexperimentcache.py
LocalExperimentCache ¶
Bases: ExperimentCache
Implementation of the ExperimentCache interface for local disk experiments.
Factory method for the local experiment cache
Source code in niceml/experiments/localexperimentcache.py
Functions¶
__contains__ ¶
Checks if the experiment is in the cache
find_folder_name_of_exp_id ¶
Finds the folder name of the experiment id
Source code in niceml/experiments/localexperimentcache.py
get_exp_count_in_cache ¶
load_exp_info ¶
Loads the experiment info from the cache
Source code in niceml/experiments/localexperimentcache.py
load_experiment ¶
Loads the experiment from the cache
Source code in niceml/experiments/localexperimentcache.py
save_experiment ¶
Saves the experiment to the cache
Source code in niceml/experiments/localexperimentcache.py
Functions¶
create_exp_file_df ¶
Creates a dataframe with the experiment files
Source code in niceml/experiments/localexperimentcache.py
get_exp_folder_list ¶
Creates a list with names of experiment folders, which also includes parent
directories if they exist
Args:
folder: folder to search in
root_folder: param for saving the first folder
attribute due to a recursive function call
Returns:
-
List[str]
–List of experiment folder names