utils
lanfactory.utils.save_configs
save_configs(model_id=None, save_folder=None, network_config=None, train_config=None, allow_abs_path_folder_generation=True)
Function to save the network and training configurations to a folder.
Arguments
model_id (str):
The id of the model.
save_folder (str):
The folder to save the configurations to.
network_config (dict):
The network configuration dictionary.
train_config (dict):
The training configuration dictionary.
allow_abs_path_folder_generation (bool):
If True, the folder string is treated as an absolute path.
If False, the folder string is treated as a relative path.
lanfactory.utils.try_gen_folder
Function to generate a folder from a string. If the folder already exists, it will not be generated.
Arguments
folder (str):
The folder string to generate.
allow_abs_path_folder_generation (bool):
If True, the folder string is treated as an absolute path.
If False, the folder string is treated as a relative path.
lanfactory.utils.util_funs
save_configs
save_configs(model_id=None, save_folder=None, network_config=None, train_config=None, allow_abs_path_folder_generation=True)
Function to save the network and training configurations to a folder.
Arguments
model_id (str):
The id of the model.
save_folder (str):
The folder to save the configurations to.
network_config (dict):
The network configuration dictionary.
train_config (dict):
The training configuration dictionary.
allow_abs_path_folder_generation (bool):
If True, the folder string is treated as an absolute path.
If False, the folder string is treated as a relative path.
try_gen_folder
Function to generate a folder from a string. If the folder already exists, it will not be generated.
Arguments
folder (str):
The folder string to generate.
allow_abs_path_folder_generation (bool):
If True, the folder string is treated as an absolute path.
If False, the folder string is treated as a relative path.