Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A unified framework for machine learning with time series

License

NotificationsYou must be signed in to change notification settings

sktime/sktime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

A unified interface for machine learning with time series

🚀Version 0.36.0 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 forecasting, time series classification, clustering, anomaly/changepoint detection, and other tasks. It comes withtime series algorithms andscikit-learn compatible tools to build, tune, and validate time series models.

Documentation ·Tutorials ·Release Notes
Open SourceBSD 3-clause
TutorialsBinder!youtube
Community!discord!slack
CI/CDgithub-actionsreadthedocsplatform
Code!pypi!conda!python-versions!black
DownloadsPyPI - DownloadsPyPI - DownloadsDownloads
Citation!zenodo

📚 Documentation

Documentation
TutorialsNew to sktime? Here's everything you need to know!
📋Binder NotebooksExample notebooks to play with in your browser.
👩‍💻ExamplesHow to use sktime and its features.
✂️Extension TemplatesHow to build your own estimator using sktime's API.
🎛️API ReferenceThe detailed reference for sktime's API.
📺Video TutorialOur video tutorial from 2021 PyData Global.
🛠️ChangelogChanges and version history.
🌳Roadmapsktime's software and community development plan.
📝Related SoftwareA list of related software.

💬 Where to ask questions

Questions and feedback are extremely welcome! We strongly believe in the value of sharing help publicly, as it allows a wider audience to benefit from it.

TypePlatforms
🐛Bug ReportsGitHub Issue Tracker
Feature Requests & IdeasGitHub Issue Tracker
👩‍💻Usage QuestionsGitHub Discussions ·Stack Overflow
💬General DiscussionGitHub Discussions
🏭Contribution & Developmentdev-chat channel ·Discord
🌐Meet-ups and collaboration sessionsDiscord - Fridays 13 UTC, dev/meet-ups channel

💫 Features

Our objective is to enhance the interoperability and usability of the time series analysis ecosystem in its entirety. sktime provides aunified interface for distinct but related time series learning tasks. It featuresdedicated time series algorithms andtools for composite model building, such as pipelining, ensembling, tuning, and reduction, empowering users to apply algorithms designed for one task to another.

sktime also providesinterfaces to related libraries, for examplescikit-learn,statsmodels,tsfresh,PyOD, andfbprophet, among others.

ModuleStatusLinks
ForecastingstableTutorial ·API Reference ·Extension Template
Time Series ClassificationstableTutorial ·API Reference ·Extension Template
Time Series RegressionstableAPI Reference
TransformationsstableTutorial ·API Reference ·Extension Template
Detection tasksmaturingExtension Template
Parameter fittingmaturingAPI Reference ·Extension Template
Time Series ClusteringmaturingAPI Reference ·Extension Template
Time Series Distances/KernelsmaturingTutorial ·API Reference ·Extension Template
Time Series AlignmentexperimentalAPI Reference ·Extension Template
Time Series SplittersmaturingExtension Template
Distributions and simulationexperimental

⏳ Install sktime

For troubleshooting and detailed installation instructions, see thedocumentation.

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

pip

Using pip, sktime releases are available as source packages and binary wheels.Available wheels are listedhere.

pip install sktime

or, with maximum dependencies,

pip install sktime[all_extras]

For curated sets of soft dependencies for specific learning tasks:

pip install sktime[forecasting]# for selected forecasting dependenciespip install sktime[forecasting,transformations]# forecasters and transformers

or similar. Valid sets are:

  • forecasting
  • transformations
  • classification
  • regression
  • clustering
  • param_est
  • networks
  • detection
  • alignment

Cave: in general, not all soft dependencies for a learning task are installed,only a curated selection.

conda

You can also install sktime fromconda via theconda-forge channel.The feedstock including the build recipe and configuration is maintainedinthis conda-forge repository.

conda install -c conda-forge sktime

or, with maximum dependencies,

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

(asconda does not support dependency sets,flexible choice of soft dependencies is unavailable viaconda)

⚡ Quickstart

Forecasting

fromsktime.datasetsimportload_airlinefromsktime.forecasting.baseimportForecastingHorizonfromsktime.forecasting.thetaimportThetaForecasterfromsktime.splitimporttemporal_train_test_splitfromsktime.performance_metrics.forecastingimportmean_absolute_percentage_errory=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 periodicityforecaster.fit(y_train)y_pred=forecaster.predict(fh)mean_absolute_percentage_error(y_test,y_pred)>>>0.08661467738190656

Time Series Classification

fromsktime.classification.interval_basedimportTimeSeriesForestClassifierfromsktime.datasetsimportload_arrow_headfromsklearn.model_selectionimporttrain_test_splitfromsklearn.metricsimportaccuracy_scoreX,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 theall-contributors specification: all kinds of contributions are welcome - not just code.

Documentation
💝ContributeHow to contribute to sktime.
🎒MentoringNew to open source? Apply to our mentoring program!
📅MeetingsJoin our discussions, tutorials, workshops, and sprints!
👩‍🔧Developer GuidesHow to further develop sktime's code base.
🚧Enhancement ProposalsDesign a new feature for sktime.
🏅ContributorsA list of all contributors.
🙋RolesAn overview of our core community roles.
💸DonateFund sktime maintenance and development.
🏛️GovernanceHow and by whom decisions are made in sktime's community.

🏆 Hall of fame

Thanks to all our community for all your wonderful contributions, PRs, issues, ideas.


💡 Project vision

  • By the community, for the community -- developed by a friendly and collaborative community.
  • Theright tool for the right task -- helping users to diagnose their learning problem and suitable scientific model types.
  • Embedded in state-of-art ecosystems andprovider of interoperable interfaces -- interoperable withscikit-learn,statsmodels,tsfresh, and other community favorites.
  • Rich model composition and reduction functionality -- build tuning and feature extraction pipelines, solve forecasting tasks withscikit-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, and avoid pitfalls.
  • Easily extensible -- easy extension templates to add your own algorithms compatible with sktime's API.

[8]ページ先頭

©2009-2025 Movatter.jp