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 |
|
Docs |
|
Community |
|
Code |
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
PyData Amsterdam 2020 tutorial: [video], [notebooks]
Tutorial notebooks - you can run them on Binder without having to install anything!
How to contribute
We follow the all-contributors specification - and all kinds of contributions are welcome!
Enhancement proposals (design discussions)
If you have a question, chat with us or raise an issue. Your help and feedback is extremely welcome!
Development roadmap
Multivariate/panel forecasting,
Time series clustering,
Time series annotation (segmentation and anomaly detection),
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:
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 Distribution
Built Distributions
File details
Details for the file sktime-0.5.2.tar.gz
.
File metadata
- Download URL: sktime-0.5.2.tar.gz
- Upload date:
- Size: 38.0 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6473161977c2e5aed303aa7c8615c4f6d419195fc532e31b6cd7023b1291845c |
|
MD5 | 6f0fa9739af19b1ca1a882d0b23d64e6 |
|
BLAKE2b-256 | a5b259da3123b4e89a5eb93804b089a99d61907bc492d4d1b516967b0bc41aa6 |
File details
Details for the file sktime-0.5.2-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: sktime-0.5.2-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.1.2.post20210112 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41c7d400f08e7b5eed9244fd9a8ad8912164ec7fd28febdeab670f27bb8c0b12 |
|
MD5 | 4d4b13ac41925991d9acaa1e2ed3132f |
|
BLAKE2b-256 | e795482d2508e1746c5f75838a3636b8a8154d0ec44b9a5e33f97e38bcc97435 |
File details
Details for the file sktime-0.5.2-cp38-cp38-manylinux2014_x86_64.whl
.
File metadata
- Download URL: sktime-0.5.2-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.56.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ab6ccc3954974e00f1acfc62a8199a4b6093ebdf018edba6adfa16a503a9da2 |
|
MD5 | 5e59225c3c385cb6e934fe06a3699adb |
|
BLAKE2b-256 | 7afb2ea3d337a00bf3f436c6bb23fefe89a8d7aa04de105f9bee11633125d146 |
File details
Details for the file sktime-0.5.2-cp38-cp38-manylinux2010_x86_64.whl
.
File metadata
- Download URL: sktime-0.5.2-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.56.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e36f58affac6ae93ce1dd61798306186edec91221003c4319126c81e5d2d19f0 |
|
MD5 | a68c6041ac4009966f83da89c5b99a09 |
|
BLAKE2b-256 | 39015366d7c123a3277cf167271956531ca6797818d676f0a0ced93b90b3dbeb |
File details
Details for the file sktime-0.5.2-cp38-cp38-macosx_10_15_x86_64.whl
.
File metadata
- Download URL: sktime-0.5.2-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.56.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97ce8134324e7d9c32e8f5825580d788910cc92b2d5c79346371c1432195a9cf |
|
MD5 | 7677dfb71e2e98e0047aeca350b6612e |
|
BLAKE2b-256 | 13369ab6e4bc21cbd5a47d3a591a9e6b8e6a83d2fc387aa3b3074e5a4b26e8d2 |
File details
Details for the file sktime-0.5.2-cp37-cp37m-win_amd64.whl
.
File metadata
- Download URL: sktime-0.5.2-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.1.2.post20210112 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2a2e6ea717fe1c8a33ef65fce8927d85aedbed204f0730abf2b36cc5ae10d0d |
|
MD5 | 2a0940b3693a5f0f9b60a1780d37e646 |
|
BLAKE2b-256 | 4e6312f507102addbf7289e2639d3103270e840ec0ebf941cde88fa99b8fefb5 |
File details
Details for the file sktime-0.5.2-cp37-cp37m-manylinux2014_x86_64.whl
.
File metadata
- Download URL: sktime-0.5.2-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.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01567cd9cd012d9a7985ab73bc97d191a202677df2bb8dfb89f4779a4362e235 |
|
MD5 | 604587c76373c53ed4f8d29fbdd4db6c |
|
BLAKE2b-256 | 2325e8e15ef7fdcdab5653bbf81480995b7a5900a95c466fd345364084deb660 |
File details
Details for the file sktime-0.5.2-cp37-cp37m-manylinux2010_x86_64.whl
.
File metadata
- Download URL: sktime-0.5.2-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.56.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7060a1087538d51da6ac45dfa5b726f1b39bbbed700096640a739273e022e57 |
|
MD5 | 012933dec1ecb6bae9605925c83f654a |
|
BLAKE2b-256 | fa6980fa225f4e8a8f7ef90dad359415a4a94dd90a585bfeac75c89e6f235592 |
File details
Details for the file sktime-0.5.2-cp37-cp37m-macosx_10_15_x86_64.whl
.
File metadata
- Download URL: sktime-0.5.2-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.56.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d890456298a0625ceac6f0ab0711057c767e90474ad10568aaeccc95b3a64f3d |
|
MD5 | 639f6e8c14bd05b58b11f76e3b85f08f |
|
BLAKE2b-256 | e1fb4fb234f9a948a683a23d07df5d249f32a59d14865d7a199637affa55f911 |
File details
Details for the file sktime-0.5.2-cp36-cp36m-win_amd64.whl
.
File metadata
- Download URL: sktime-0.5.2-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.1.2.post20210112 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84188f6114f37d6a9df6869ab4e08cdea810b27c07393b11981bd50485db2ed6 |
|
MD5 | 48c5a332035d5cfebc50871d85763a57 |
|
BLAKE2b-256 | 64d879f6a5221d2b49f46d9bbdb2bf4ed44bf44a2a27d092633678f32c7cb9a9 |
File details
Details for the file sktime-0.5.2-cp36-cp36m-manylinux2014_x86_64.whl
.
File metadata
- Download URL: sktime-0.5.2-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.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a275c53a29fa2843073d1d751ee1ead556a139d5ae9acbf141737a93618e9d3e |
|
MD5 | f5459461725adcdd6846d01b9ee1ecbe |
|
BLAKE2b-256 | c0d2cd05b0ec4cb060d0dbbd428c7949de680b7d080c768b1e758328530bfb77 |
File details
Details for the file sktime-0.5.2-cp36-cp36m-manylinux2010_x86_64.whl
.
File metadata
- Download URL: sktime-0.5.2-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.56.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7472adab4b1c37a218b98d3ae72e7025195821cbb655b919dd2cb7bdcf1f4d78 |
|
MD5 | 5e5ceafd28ebe88f377f63a008a58bba |
|
BLAKE2b-256 | 74de22e26dc8ed1c19b42e1072a190de1a7276e9b887bba688f7929df50e36e2 |
File details
Details for the file sktime-0.5.2-cp36-cp36m-macosx_10_15_x86_64.whl
.
File metadata
- Download URL: sktime-0.5.2-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.56.0 CPython/3.6.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | db31d8a700c45cde946796680577ef079a3ea494ffe1ab3bb46d895bb63eef2c |
|
MD5 | 2a1a3fcf1485f632f1c5f19698437090 |
|
BLAKE2b-256 | 2fdf41764169faed029eea2115a35209364fd69b1b25e831cc8c554f81ec4dc9 |