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 python codestyle zenodo

Installation

The package is available via PyPI using:

pip install 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

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

sktime-0.5.1-cp38-cp38-win_amd64.whl (4.3 MB view details)

Uploaded CPython 3.8 Windows x86-64

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

Uploaded CPython 3.8

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

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

sktime-0.5.1-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.1-cp37-cp37m-win_amd64.whl (4.3 MB view details)

Uploaded CPython 3.7m Windows x86-64

sktime-0.5.1-cp37-cp37m-manylinux2014_x86_64.whl (5.6 MB view details)

Uploaded CPython 3.7m

sktime-0.5.1-cp37-cp37m-manylinux2010_x86_64.whl (5.5 MB view details)

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

sktime-0.5.1-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.1-cp36-cp36m-win_amd64.whl (4.3 MB view details)

Uploaded CPython 3.6m Windows x86-64

sktime-0.5.1-cp36-cp36m-manylinux2014_x86_64.whl (5.6 MB view details)

Uploaded CPython 3.6m

sktime-0.5.1-cp36-cp36m-manylinux2010_x86_64.whl (5.5 MB view details)

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

sktime-0.5.1-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.1-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: sktime-0.5.1-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 4.3 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0.post20201207 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.5

File hashes

Hashes for sktime-0.5.1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 9f7d589cc99ac7c61d64d1c040413a5f404b04f57700160f5527c9b57e607de0
MD5 415fe2627f5469fb72cc53a61755ec3c
BLAKE2b-256 3aca0607fd6cbc8e21987d6cf650f7ad94e76cdb4e5ca172f0f345aa1cc91afd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sktime-0.5.1-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.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.1

File hashes

Hashes for sktime-0.5.1-cp38-cp38-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 902ac9585eff30d15c801be6a4f4bfb7bb6187d0de299b945c40bff7b675e868
MD5 a44c82aa5fc0c0131ec2f8a5dae9877d
BLAKE2b-256 a1db9e4867d0f5a8cbc302c2165818804e1d0704c993bbe97fc30b675eac137b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sktime-0.5.1-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.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.1

File hashes

Hashes for sktime-0.5.1-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 19fe5513590506a58913b83397e71c395b94a448a5e90facf0c3b8743760dde7
MD5 81649e2cefde998b5a98c8e132634dfb
BLAKE2b-256 d44dfc2312c2c3db5e2f83a80275d901e8efd5dc799423bd96895ac20cf22c00

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sktime-0.5.1-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.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.6

File hashes

Hashes for sktime-0.5.1-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 83715bd4a5a3b119f70acc058a2d2cdb986df3e6ed05d358593a6e1e035ac5d9
MD5 5376fd243c1a3adc7b22bfb9dbcfc13a
BLAKE2b-256 0a0be743626575092410482b4343e374e52f7d24cea96b85d1b82f694f65219b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sktime-0.5.1-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.6.1 requests/2.25.1 setuptools/51.0.0.post20201207 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.7.9

File hashes

Hashes for sktime-0.5.1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 cba282b17a69d0d016605face265a704261ede1910a32bdb0ed6aba25897158c
MD5 017f97ae6d9197dcabe44deff92385d5
BLAKE2b-256 9bb164adf1b0de9835964aa03e65f299757e72abe39f17e3fb9bb7521877ef8e

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sktime-0.5.1-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b96fbaa4384eb73d2d76e3310f966cd3cd82501400551e5b8307d33ac7c95579
MD5 842b0a18443bc280e689f229bb957e92
BLAKE2b-256 2e5ca6e83fdd9350ca3a13058c810fff66d5a159d6f938ef0cf2881e3750edba

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sktime-0.5.1-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 ff27f412d720c147c6aa4b9a3b3597720c8d8e20fd75e48eae784a33ace190c7
MD5 97651fc2e2e4985842841fac7a287fa3
BLAKE2b-256 cc9c988377f802820c5ec0b11eee47eaa3be5598696a8c7b4fad67bce5219c45

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sktime-0.5.1-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.6.1 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.7.9

File hashes

Hashes for sktime-0.5.1-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 2cb2debab886c3015b49e8c60c07b2e96625d0461eb1d5354bead7086b7f38d9
MD5 d8bee74b18ccbe4af3706fdcb7abbfaa
BLAKE2b-256 c3c01f92a1ec52c08fceeeedcdc219cb97576018878b8801d279ef82670bf2de

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sktime-0.5.1-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.6.1 requests/2.25.1 setuptools/51.0.0.post20201207 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.6.12

File hashes

Hashes for sktime-0.5.1-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 d723316671e3711e65078abc93dd736941513be17b621df48ce8134f05b1bd90
MD5 c3196cbf0729249df66a3b2d2dcfa839
BLAKE2b-256 23ab3317ac3ea4d2c619d5867362da85378206c6bd59d658c2023b99e337d7ad

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sktime-0.5.1-cp36-cp36m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e25ea5d0807d9efe813ccfd6470f82dfddba804046090000e8de9fe92489341f
MD5 adf7b79d0f68c470240216b6ba6302ba
BLAKE2b-256 2e3b800883299f16a1dc5d6206b06833e568263618eb0cc9259c6aa92566860d

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sktime-0.5.1-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 4e646eae09534efb4dfcdb4fcbc7ac2ab18014c9bb1c1ae46172aee23ce93903
MD5 9db57aac055972b2abe026648a65a7f2
BLAKE2b-256 280c92dec121759353590619b266ba14a360b22b35f2e0b81313b60fc4fcceee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sktime-0.5.1-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.6.1 requests/2.25.1 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.6.12

File hashes

Hashes for sktime-0.5.1-cp36-cp36m-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 ac8211b6bdf01747dc6d8ec8ae4c90a5f7d7ab631e726574516be9c765402936
MD5 d553118a6a2bfa2dfad5e44cf54be815
BLAKE2b-256 80ad5b7088998b22561c1d6dca2de71c7840a03b1bd752ff06f50bc569d91fe4

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