timeseria.utils

Utility functions.

Functions

ensure_reproducibility()

Ensure reproducibility by fixing seeds to zero for Random, Numpy, and Tensorflow.

is_numerical(item)

Check if an item is numerical (float or int, including Pandas data types).

detect_encoding(file_name[, streaming])

Detect the encoding of a file.

detect_sampling_interval(timeseries[, ...])

Detect the sampling interval of a time series.

detect_periodicity(timeseries)

Detect the periodicity of a time series.

mean_absolute_percentage_error(list1, list2)

Compute the MAPE.

max_absolute_percentage_error(list1, list2)

Compute the MaxAPE.

mean_absolute_error(list1, list2)

Compute the MAE.

max_absolute_error(list1, list2)

Compute the MaxAE.

mean_squared_error(list1, list2)

Compute the MSE.

rescale(value, source_from, source_to[, ...])

Rescale a value from one range to another.

os_shell(command[, capture, verbose, ...])

Execute a command in the OS shell and print its output.

Classes

DistributionFunction(dist, params)

A class representing a statistical distribution.