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.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ad7cc76a24f21d8c89b628980191430149dd838957b5d5c7d7b94adf6d5321c |
|
MD5 | 96f26c6aa10e6a122fe3adb03a6a828d |
|
BLAKE2b-256 | 6ead332876b215e0f9f77796b537a949df4dc832b8f10b5ac0bafe132a9f0291 |