Skip to main content

A unified Python toolbox for machine learning with time series

Project description

A unified framework for machine learning with time series

We provide specialized time series algorithms and scikit-learn compatible tools to build, tune and validate time series models for multiple learning problems, including:

  • Forecasting,

  • Time series classification,

  • Time series regression.

For deep learning, see our companion package: sktime-dl.

CI

github appveyor azure codecov

Docs

readthedocs binder tutorial

Community

contributors gitter discord twitter

Code

pypi conda python codestyle zenodo

Installation

The package is available via PyPI using:

pip install sktime

Alternatively, you can install it via conda:

conda install -c conda-forge sktime

The package is actively being developed and some features may not be stable yet.

Development version

To install the development version, please see our advanced installation instructions.

Quickstart

Forecasting

from sktime.forecasting.all import *

y = load_airline()
y_train, y_test = temporal_train_test_split(y)
fh = ForecastingHorizon(y_test.index, is_relative=False)
forecaster = ThetaForecaster(sp=12)  # monthly seasonal periodicity
forecaster.fit(y_train)
y_pred = forecaster.predict(fh)
smape_loss(y_test, y_pred)
>>> 0.08661468139978168

For more, check out the forecasting tutorial.

Time Series Classification

from sktime.classification.all import *
from sklearn.model_selection import train_test_split
from sklearn.metrics import accuracy_score

X, y = load_arrow_head(return_X_y=True)
X_train, X_test, y_train, y_test = train_test_split(X, y)
classifier = TimeSeriesForest()
classifier.fit(X_train, y_train)
y_pred = classifier.predict(X_test)
accuracy_score(y_test, y_pred)
>>> 0.8679245283018868

For more, check out the time series classification tutorial.

Documentation

How to contribute

We follow the all-contributors specification - and all kinds of contributions are welcome!

If you have a question, chat with us or raise an issue. Your help and feedback is extremely welcome!

Development roadmap

  1. Multivariate/panel forecasting,

  2. Time series clustering,

  3. Time series annotation (segmentation and anomaly detection),

  4. Probabilistic time series modelling, including survival and point processes.

Read our detailed roadmap here.

How to cite sktime

If you use sktime in a scientific publication, we would appreciate citations to the following paper:

Markus Löning, Anthony Bagnall, Sajaysurya Ganesh, Viktor Kazakov, Jason Lines, Franz Király (2019): “sktime: A Unified Interface for Machine Learning with Time Series”

Bibtex entry:

@inproceedings{sktime,
    author = {L{\"{o}}ning, Markus and Bagnall, Anthony and Ganesh, Sajaysurya and Kazakov, Viktor and Lines, Jason and Kir{\'{a}}ly, Franz J},
    booktitle = {Workshop on Systems for ML at NeurIPS 2019},
    title = {{sktime: A Unified Interface for Machine Learning with Time Series}},
    date = {2019},
}

Project details


Release history Release notifications | RSS feed

This version

0.5.3

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sktime-0.5.3.tar.gz (37.9 MB view details)

Uploaded Source

Built Distributions

sktime-0.5.3-cp38-cp38-win_amd64.whl (4.4 MB view details)

Uploaded CPython 3.8 Windows x86-64

sktime-0.5.3-cp38-cp38-manylinux2014_x86_64.whl (5.8 MB view details)

Uploaded CPython 3.8

sktime-0.5.3-cp38-cp38-manylinux2010_x86_64.whl (5.7 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

sktime-0.5.3-cp38-cp38-macosx_10_15_x86_64.whl (4.4 MB view details)

Uploaded CPython 3.8 macOS 10.15+ x86-64

sktime-0.5.3-cp37-cp37m-win_amd64.whl (4.3 MB view details)

Uploaded CPython 3.7m Windows x86-64

sktime-0.5.3-cp37-cp37m-manylinux2014_x86_64.whl (5.7 MB view details)

Uploaded CPython 3.7m

sktime-0.5.3-cp37-cp37m-manylinux2010_x86_64.whl (5.6 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

sktime-0.5.3-cp37-cp37m-macosx_10_15_x86_64.whl (4.4 MB view details)

Uploaded CPython 3.7m macOS 10.15+ x86-64

sktime-0.5.3-cp36-cp36m-win_amd64.whl (4.3 MB view details)

Uploaded CPython 3.6m Windows x86-64

sktime-0.5.3-cp36-cp36m-manylinux2014_x86_64.whl (5.7 MB view details)

Uploaded CPython 3.6m

sktime-0.5.3-cp36-cp36m-manylinux2010_x86_64.whl (5.6 MB view details)

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64

sktime-0.5.3-cp36-cp36m-macosx_10_15_x86_64.whl (4.4 MB view details)

Uploaded CPython 3.6m macOS 10.15+ x86-64

File details

Details for the file sktime-0.5.3.tar.gz.

File metadata

  • Download URL: sktime-0.5.3.tar.gz
  • Upload date:
  • Size: 37.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/49.6.0.post20210108 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.8

File hashes

Hashes for sktime-0.5.3.tar.gz
Algorithm Hash digest
SHA256 fed22daa96b8ca1133633beecb583f52d7aaf5e6f614b9ff6020b6bcc9cb6741
MD5 2b466edf2546fd5f459c530b25f7c21a
BLAKE2b-256 17edce48376261d27a3ea77f4eadfaf6a8a8fce229d2052681e8fb15ce78dc22

See more details on using hashes here.

File details

Details for the file sktime-0.5.3-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: sktime-0.5.3-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 4.4 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0.post20210125 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5

File hashes

Hashes for sktime-0.5.3-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 4b48a11571eaf2474b7f9413439a4c1cb15a656cef59a66e74552b48ca3c4428
MD5 667962b5861b5899e6d3d241ba4901c6
BLAKE2b-256 08213ae2433b00da4432ecea5763ea0029e631a13b27544b79214fae08f4ff96

See more details on using hashes here.

File details

Details for the file sktime-0.5.3-cp38-cp38-manylinux2014_x86_64.whl.

File metadata

  • Download URL: sktime-0.5.3-cp38-cp38-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 5.8 MB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for sktime-0.5.3-cp38-cp38-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 30e3d05aced5fae4f3688cd30ce44aeb62679bfe1229832b991fa78daefaa121
MD5 3d994bf74cc3fe030305018609af8428
BLAKE2b-256 aebc80aaf4a61632b4eb672538da3ee1b6081a66405cb2e0e0141566c4f180e8

See more details on using hashes here.

File details

Details for the file sktime-0.5.3-cp38-cp38-manylinux2010_x86_64.whl.

File metadata

  • Download URL: sktime-0.5.3-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 5.7 MB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for sktime-0.5.3-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 182046de0954d776b117231b8b042d7fcf637b9a8dc37d60b7d33a4780237e90
MD5 1d31f890c1a9f0fc642b99964eace225
BLAKE2b-256 ee2c781895f9083f365d6b3f0e55986f72c58aff8eef7cd6d066395f1ae4afcb

See more details on using hashes here.

File details

Details for the file sktime-0.5.3-cp38-cp38-macosx_10_15_x86_64.whl.

File metadata

  • Download URL: sktime-0.5.3-cp38-cp38-macosx_10_15_x86_64.whl
  • Upload date:
  • Size: 4.4 MB
  • Tags: CPython 3.8, macOS 10.15+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.7

File hashes

Hashes for sktime-0.5.3-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 917eab2a37bf97955e9846ae0e2bfbdf3ba786b1e39d45073f2177d6dc877ab1
MD5 315f2894361914e8348befa391eebc8d
BLAKE2b-256 9dfe5bec08194f2d514e3a91b0f2b50c9223804a4324a2453365385ecab34ce1

See more details on using hashes here.

File details

Details for the file sktime-0.5.3-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: sktime-0.5.3-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 4.3 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0.post20210125 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9

File hashes

Hashes for sktime-0.5.3-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 765d7dd52a332feeb405bb24bac78c522bddd7ce758d71277d8c1acead6dc94d
MD5 0e725832cbbd442923bc90c12b375019
BLAKE2b-256 8f81369b1e8b3f0847230d93efa1d88a8181d44e49afd806fc767224ebc20352

See more details on using hashes here.

File details

Details for the file sktime-0.5.3-cp37-cp37m-manylinux2014_x86_64.whl.

File metadata

  • Download URL: sktime-0.5.3-cp37-cp37m-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 5.7 MB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for sktime-0.5.3-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 86dbaa4f9a7c44eddf324fc6087a94ab4fa3e274be0bbc937b105b54df83f387
MD5 4d2fddffbe9eb1516447ab89039ceb9f
BLAKE2b-256 cbda50152302ec50c4be412f028edd9173b66121ed7af80473cca47ef6eae65b

See more details on using hashes here.

File details

Details for the file sktime-0.5.3-cp37-cp37m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: sktime-0.5.3-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 5.6 MB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for sktime-0.5.3-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 2630701238f4730cb6202c63516708d6fde62cebaffc07f47f64c0183f2f0f52
MD5 0ec9db7d1773a1e82eb455fefc7bc19d
BLAKE2b-256 01b4ae4b615fd50805e4c3277922b34a4e9bfe5262fdb1036c6e78fe7a191362

See more details on using hashes here.

File details

Details for the file sktime-0.5.3-cp37-cp37m-macosx_10_15_x86_64.whl.

File metadata

  • Download URL: sktime-0.5.3-cp37-cp37m-macosx_10_15_x86_64.whl
  • Upload date:
  • Size: 4.4 MB
  • Tags: CPython 3.7m, macOS 10.15+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9

File hashes

Hashes for sktime-0.5.3-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 231ae08b7e70276b6b22e378aa6c5f2217c964123ced09755a5ab08086cbb3b6
MD5 e00159f1f60d884cfa4c820daa4de2bf
BLAKE2b-256 5d30f9c83f5766c322832b6f3a8ad8279cd1f64fb816584420a005858e9b5816

See more details on using hashes here.

File details

Details for the file sktime-0.5.3-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: sktime-0.5.3-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 4.3 MB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0.post20210125 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.12

File hashes

Hashes for sktime-0.5.3-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 1b4e3d97f69d6597017d2896f713f25d1b566da7fb9a9c219089abfb196c8530
MD5 301a267836293f32f3fe81f7dd172981
BLAKE2b-256 c22a5373cf07171881ff3de38fa8e8ec1b1949df314accb8e450e4c65f814271

See more details on using hashes here.

File details

Details for the file sktime-0.5.3-cp36-cp36m-manylinux2014_x86_64.whl.

File metadata

  • Download URL: sktime-0.5.3-cp36-cp36m-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 5.7 MB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for sktime-0.5.3-cp36-cp36m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7ddce21304d8f33d038b18ae9e6126b3836a868a91559e5fa2d357427ae38206
MD5 550a02b02387f3564e46e019e2098e42
BLAKE2b-256 23339c41660bf00420033a6e07809491263cc9a7d889ec4dfb2f7ea4a2f1bb63

See more details on using hashes here.

File details

Details for the file sktime-0.5.3-cp36-cp36m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: sktime-0.5.3-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 5.6 MB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for sktime-0.5.3-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 010ffcf0a2dd209d9e3bd37e0aeb18da5fb92a49c8808c4441a60dcc334d6a78
MD5 d3e43fde9f316d24747645c0ad483f2b
BLAKE2b-256 a14e3bc2c8589498a7b10481ffc09218228a3a38ce900186ae2a73608fc7fd0c

See more details on using hashes here.

File details

Details for the file sktime-0.5.3-cp36-cp36m-macosx_10_15_x86_64.whl.

File metadata

  • Download URL: sktime-0.5.3-cp36-cp36m-macosx_10_15_x86_64.whl
  • Upload date:
  • Size: 4.4 MB
  • Tags: CPython 3.6m, macOS 10.15+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.12

File hashes

Hashes for sktime-0.5.3-cp36-cp36m-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 65673e314726df3cd61c21d132ed29641718055f26c77dd11a6a0ddf9b3ff02c
MD5 a961ce84609585f9cb7180ff642849a9
BLAKE2b-256 3ff6c32ca22fbd273221c63e31b402ea4bff2e52c8d3a1d1ec90485013da3757

See more details on using hashes here.

Supported by

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