Skip to main content

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

ts_hyperparam_opt-0.1.3.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ts_hyperparam_opt-0.1.3-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

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

Hashes for ts_hyperparam_opt-0.1.3.tar.gz
Algorithm Hash digest
SHA256 26776739c4f00fcbbc48c48f97ab3f2f62497b79d8255810a0fb8a073c6cfb39
MD5 070ef6bba7997c8fc5c8da5b4f970cf1
BLAKE2b-256 5e301ee04080e66c8682dc3729098ad7eb85b898a948cd90a317844936873685

See more details on using hashes here.

File details

Details for the file ts_hyperparam_opt-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for ts_hyperparam_opt-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 cf3135e9e7ff49c3fbea04e9e5322df39d084a89a54123df6eebf9688319de2c
MD5 0f6866c4347183a81a6f62a18ce9bce0
BLAKE2b-256 f9fdd0cc191c203e29c8ed05f10cafa9bc6f62dbb5cdb51021524ceffe6c0568

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page