runn.utils
IncompatibleVersionError
#
Bases: Exception
Raised when the version of runn used to create the model is not compatible with the current version.
NotSupportedError
#
Bases: Exception
Raised when a not supported operation for a given model is called.
ProgressBar(total, bar_length=25, filled_mark='=', suffix='')
#
A simple progress bar.
PARAMETER | DESCRIPTION |
---|---|
total |
The total number of steps.
|
bar_length |
The length of the bar.
DEFAULT:
|
filled_mark |
The character to fill the bar.
DEFAULT:
|
suffix |
The suffix to be shown at the end of the bar.
DEFAULT:
|
Source code in runn/utils.py
bar_length = bar_length
instance-attribute
#
filled_mark = filled_mark
instance-attribute
#
start_time = None
instance-attribute
#
suffix = suffix
instance-attribute
#
total = total
instance-attribute
#
update(count_value, value_dict={})
#
Update the progress bar.
PARAMETER | DESCRIPTION |
---|---|
count_value |
The current value.
|
value_dict |
A dictionary of values to be shown at the end of the bar.
DEFAULT:
|
Source code in runn/utils.py
WarningManager
#
Singleton class to manage warnings.