ts_benchmark.utils package
Subpackages
- ts_benchmark.utils.parallel package
- ts_benchmark.utils.parallel.base module
- ts_benchmark.utils.parallel.ray_backend module
- ts_benchmark.utils.parallel.sequential_backend module
ts_benchmark.utils.compress module
Functions
|
|
|
Compress in gz format |
|
Compress data using Gzip compression. |
|
|
|
|
|
Decompress Gzip-compressed data and return the original dictionary. |
|
|
ts_benchmark.utils.data_processing module
Functions
|
Split time series data into two parts at the specified index. |
ts_benchmark.utils.design_pattern module
Classes
Used to construct singleton classes through the method of meta classes |
ts_benchmark.utils.get_file_name module
Functions
Generate a log file name suffix that includes the following information: |
- get_unique_file_suffix()[source]
Generate a log file name suffix that includes the following information:
Hostname
The current timestamp, in seconds, is the number of seconds since the Unix era
PID (process identifier) of the process
Return: str: The name of the generated log file, in the format ‘.timestamp.hostname.pid.csv’
For example, if the host name is’ myhost ‘, the current timestamp is 1631655702, and the current process ID is 12345 The returned file name may be ‘.1631655702.myhost.12345.csv’.
ts_benchmark.utils.random_utils module
Functions
|
Fixes the random seed for Python, PyTorch, NumPy, and CUDA. |
|
Fixes the random seed for Python, PyTorch, and NumPy to ensure reproducibility. |