uqregressors.utils.logging
Logger
Base Logging class.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
use_wandb
|
bool
|
Whether to use weights and biases for logging (Experimental feature, not validated yet). |
False
|
project_name
|
str
|
The logger project name. |
None
|
run_name
|
str
|
The logger run name for a given training run. |
None
|
config
|
dict
|
Dictionary of relevant training parameters, only used if weights and biases is used. |
None
|
name
|
str
|
Name of the logger. |
None
|
Source code in uqregressors/utils/logging.py
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | |
finish()
Finish method for weights and biases logging.
Source code in uqregressors/utils/logging.py
79 80 81 82 83 84 | |
log(data)
Writes a dictionary to a stored internal log.
Source code in uqregressors/utils/logging.py
58 59 60 61 62 63 64 65 66 67 | |
save_to_file(path, subdir='logs', idx=0, name='')
Saves logs to the logs subdirectory when model.save is called.
Source code in uqregressors/utils/logging.py
69 70 71 72 73 74 75 76 | |
set_logging_config(print=True)
Sets global logging printing configuration.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
print
|
bool
|
If False, disables printing to the terminal for all future Logger instances |
True
|
Source code in uqregressors/utils/logging.py
9 10 11 12 13 14 15 16 | |