Convenience package for parallelized hyperparameter optimization (e.g. in Jupyter Notebooks) using grid search and CV
Project description
Time Series Hyperparameter Optimization (CV + Parallel)
Convenience package for optimizing hyperparameters for Time Series forecasting
using methods like ExponentialSmoothing or SARIMAX. Especially useful
for Jupyter Notebooks where parallelization (with e.g. ProcessPoolExecutor)
only works when importing the function used in parallel.
Install it from PyPI
pip install ts-hyperparam-opt
Usage
from ts_hyperparam_opt import parallel_hyperparameter_optimization as pho
params_sarima = [
[(1,1,1), (1,1,1,7)],
[(1,1,0), (1,1,1,7)]
]
if __name__ == '__main__':
freeze_support()
results = process_map(functools.partial(pho.optimize_hyperparams,
data=df_data, func="sarima",
n_steps=15), params_sarima)
results_sorted = pho.sort_results(results)
Development
Alpha Version
Currently supported methods:
- (Triple) Exponential Smoothing (Holt-Winters)
- SARIMA(X)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ts_hyperparam_opt-0.1.3.tar.gz.
File metadata
- Download URL: ts_hyperparam_opt-0.1.3.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26776739c4f00fcbbc48c48f97ab3f2f62497b79d8255810a0fb8a073c6cfb39
|
|
| MD5 |
070ef6bba7997c8fc5c8da5b4f970cf1
|
|
| BLAKE2b-256 |
5e301ee04080e66c8682dc3729098ad7eb85b898a948cd90a317844936873685
|
File details
Details for the file ts_hyperparam_opt-0.1.3-py3-none-any.whl.
File metadata
- Download URL: ts_hyperparam_opt-0.1.3-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf3135e9e7ff49c3fbea04e9e5322df39d084a89a54123df6eebf9688319de2c
|
|
| MD5 |
0f6866c4347183a81a6f62a18ce9bce0
|
|
| BLAKE2b-256 |
f9fdd0cc191c203e29c8ed05f10cafa9bc6f62dbb5cdb51021524ceffe6c0568
|