elliot.utils package¶
Submodules¶
elliot.utils.folder module¶
Module description:
elliot.utils.logger_util module¶
elliot.utils.logging module¶
elliot.utils.read module¶
Module description:
-
elliot.utils.read.
find_checkpoint
(dir, restore_epochs, epochs, rec, best=0)[source]¶ - Parameters
dir – directory of the model where we start from the reading.
restore_epochs – epoch from which we start from.
epochs – epochs from which we restore (0 means that we have best)
rec – recommender model
best – 0 No Best - 1 Search for the Best
- Returns
-
elliot.utils.read.
load_obj
(name)[source]¶ Load the pkl object by name :param name: name of file :return:
-
elliot.utils.read.
read_config
(sections_fields)[source]¶ - Parameters
sections_fields (list) – list of fields to retrieve from configuration file
- Returns
A list of configuration values.
-
elliot.utils.read.
read_csv
(filename)[source]¶ - Parameters
filename (str) – csv file path
- Returns
A pandas dataframe.
-
elliot.utils.read.
read_imagenet_classes_txt
(filename)[source]¶ - Parameters
filename (str) – txt file path
- Returns
A list with 1000 imagenet classes as strings.
elliot.utils.write module¶
Module description:
-
elliot.utils.write.
save_np
(npy, filename)[source]¶ Store numpy to memory. :param npy: numpy to save :param filename: filename :type filename: str
Module contents¶
Module description: