Git Product home page Git Product logo

sktime's Introduction

Welcome to sktime

A unified interface for machine learning with time series

๐Ÿš€ Version 0.19.1 out now! Check out the release notes here.

sktime is a library for time series analysis in Python. It provides a unified interface for multiple time series learning tasks. Currently, this includes time series classification, regression, clustering, annotation and forecasting. It comes with time series algorithms and scikit-learn compatible tools to build, tune and validate time series models.

Overview
CI/CD github-actions !codecov readthedocs platform
Code !pypi !conda !python-versions !black Binder
Downloads Downloads Downloads Downloads
Community !discord !slack !youtube
Citation !zenodo

๐Ÿ“š Documentation

Documentation
โญ Tutorials New to sktime? Here's everything you need to know!
๐Ÿ“‹ Binder Notebooks Example notebooks to play with in your browser.
๐Ÿ‘ฉโ€๐Ÿ’ป User Guides How to use sktime and its features.
โœ‚๏ธ Extension Templates How to build your own estimator using sktime's API.
๐ŸŽ›๏ธ API Reference The detailed reference for sktime's API.
๐Ÿ“บ Video Tutorial Our video tutorial from 2021 PyData Global.
๐Ÿ› ๏ธ Changelog Changes and version history.
๐ŸŒณ Roadmap sktime's software and community development plan.
๐Ÿ“ Related Software A list of related software.

๐Ÿ’ฌ Where to ask questions

Questions and feedback are extremely welcome! Please understand that we won't be able to provide individual support via email. We also believe that help is much more valuable if it's shared publicly, so that more people can benefit from it.

Type Platforms
๐Ÿ› Bug Reports GitHub Issue Tracker
โœจ Feature Requests & Ideas GitHub Issue Tracker
๐Ÿ‘ฉโ€๐Ÿ’ป Usage Questions GitHub Discussions ยท Stack Overflow
๐Ÿ’ฌ General Discussion GitHub Discussions
๐Ÿญ Contribution & Development contributors channel ยท Discord
๐ŸŒ Community collaboration session Discord - Fridays 3pm UTC, dev/meet-ups channel

๐Ÿ’ซ Features

Our aim is to make the time series analysis ecosystem more interoperable and usable as a whole. sktime provides a unified interface for distinct but related time series learning tasks. It features dedicated time series algorithms and tools for composite model building including pipelining, ensembling, tuning and reduction that enables users to apply an algorithm for one task to another.

sktime also provides interfaces to related libraries, for example scikit-learn, statsmodels, tsfresh, PyOD and fbprophet, among others.

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

Module Status Links
Forecasting stable Tutorial ยท API Reference ยท Extension Template
Time Series Classification stable Tutorial ยท API Reference ยท Extension Template
Time Series Regression stable API Reference
Transformations stable Tutorial ยท API Reference ยท Extension Template
Parameter fitting maturing API Reference ยท Extension Template
Time Series Clustering maturing API Reference ยท Extension Template
Time Series Distances/Kernels maturing Tutorial ยท API Reference ยท Extension Template
[Time Series Alignment] experimental API Reference ยท Extension Template
Annotation experimental Extension Template
Distributions and simulation experimental

โณ Install sktime

For trouble shooting and detailed installation instructions, see the documentation.

  • Operating system: macOS X ยท Linux ยท Windows 8.1 or higher
  • Python version: Python 3.7, 3.8, 3.9, 3.10, and 3.11 (only 64 bit)
  • Package managers: pip ยท conda (via conda-forge)

pip

Using pip, sktime releases are available as source packages and binary wheels. You can see all available wheels here.

pip install sktime

or, with maximum dependencies,

pip install sktime[all_extras]

conda

You can also install sktime from conda via the conda-forge channel. For the feedstock including the build recipe and configuration, check out this repository.

conda install -c conda-forge sktime

or, with maximum dependencies,

conda install -c conda-forge sktime-all-extras

โšก Quickstart

Forecasting

from sktime.datasets import load_airline
from sktime.forecasting.base import ForecastingHorizon
from sktime.forecasting.model_selection import temporal_train_test_split
from sktime.forecasting.theta import ThetaForecaster
from sktime.performance_metrics.forecasting import mean_absolute_percentage_error

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)
mean_absolute_percentage_error(y_test, y_pred)
>>> 0.08661467738190656

Time Series Classification

from sktime.classification.interval_based import TimeSeriesForestClassifier
from sktime.datasets import load_arrow_head
from sklearn.model_selection import train_test_split
from sklearn.metrics import accuracy_score

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

๐Ÿ‘‹ How to get involved

There are many ways to join the sktime community. We follow the all-contributors specification: all kinds of contributions are welcome - not just code.

Documentation
๐Ÿ’ Contribute How to contribute to sktime.
๐ŸŽ’ Mentoring New to open source? Apply to our mentoring program!
๐Ÿ“… Meetings Join our discussions, tutorials, workshops and sprints!
๐Ÿ‘ฉโ€๐Ÿ”ง Developer Guides How to further develop sktime's code base.
๐Ÿšง Enhancement Proposals Design a new feature for sktime.
๐Ÿ… Contributors A list of all contributors.
๐Ÿ™‹ Roles An overview of our core community roles.
๐Ÿ’ธ Donate Fund sktime maintenance and development.
๐Ÿ›๏ธ Governance How and by whom decisions are made in sktime's community.

๐Ÿ’ก Project vision

  • by the community, for the community -- developed by a friendly and collaborative community.
  • the right tool for the right task -- helping users to diagnose their learning problem and suitable scientific model types.
  • embedded in state-of-art ecosystems and provider of interoperable interfaces -- interoperable with scikit-learn, statsmodels, tsfresh, and other community favourites.
  • rich model composition and reduction functionality -- build tuning and feature extraction pipelines, solve forecasting tasks with scikit-learn regressors.
  • clean, descriptive specification syntax -- based on modern object-oriented design principles for data science.
  • fair model assessment and benchmarking -- build your models, inspect your models, check your models, avoid pitfalls.
  • easily extensible -- easy extension templates to add your own algorithms compatible with sktime's API.

sktime's People

Contributors

fkiraly avatar mloning avatar tonybagnall avatar matthewmiddlehurst avatar sajaysurya avatar aiwalter avatar goastler avatar jasonlines avatar viktorkaz avatar lmmentel avatar chrisholder avatar danbartl avatar achieveordie avatar ltsaprounis avatar rnkuhns avatar miraep8 avatar yarnabrina avatar ciaran-g avatar guzalbulatova avatar thayeylolu avatar prockenschaub avatar samialavi avatar eenticott-shell avatar jesellier avatar kishmanani avatar patrickzib avatar khrapovs avatar bethrice44 avatar katiebuc avatar lovkush-a avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.