utils
convert_string_to_list(s)
Converts a Pandas Series containing stringified lists into actual lists.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
s
|
Series
|
Series with stringified lists. |
required |
Returns:
| Type | Description |
|---|---|
list[list[float]]
|
list[list[float]]: List of lists with float values. |
Source code in src/run/single_run/utils.py
358 359 360 361 362 363 364 365 366 367 368 | |
get_config(config_path)
Load the config for testing.
Source code in src/run/single_run/utils.py
752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 | |
instantiate_config(cfg)
Instantiate the config object with the appropriate datamodule and model.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cfg
|
dict
|
The configuration object. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
Args |
Args
|
The instantiated configuration object. |
Source code in src/run/single_run/utils.py
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | |
update_cfg_with_wandb(cfg)
Update the configuration object with the wandb config. This function will overwrite the config with the wandb config if the wandb config is not empty. Args:
cfg (Args): The configuration object.
Returns: Args: The updated configuration object.
Source code in src/run/single_run/utils.py
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 | |