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
Close
Hashes for ts_hyperparam_opt-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | adf58cf7939135d7c871e67014c50580760acaa8acff1e0f34f5bdbff143d674 |
|
MD5 | b8bd80a8d225edd834557967997f89af |
|
BLAKE2b-256 | ca0817ef578988dad514a1029fac5a6472d892656f4a23c3c33092b4946b9d60 |