gluonts.support.util module¶
-
class
gluonts.support.util.
SignalHandler
(handlers_map: Dict[int, Optional[Callable[[int, Any], None]]])[source]¶ Bases:
object
A context manager that attaches a set of signal handlers within its scope.
- Parameters
handlers_map – A dictionary mapping signal numbers to associated signal handlers to be attached within the scope of the enclosing SignalHandler instance.
-
Callback
= typing.Union[typing.Callable[[int, typing.Any], NoneType], NoneType]¶
-
class
gluonts.support.util.
Timer
[source]¶ Bases:
object
Context manager for measuring the time of enclosed code fragments.
-
gluonts.support.util.
get_download_path
() → pathlib.Path[source]¶ - Returns
default path to download datasets or models of gluon-ts. The path is either $MXNET_HOME if the environment variable is defined or /home/username/.mxnet/gluon-ts/
- Return type
Path