PyPOTS

PyPOTS

部分观测时间序列机器学习的开源Python工具箱

PyPOTS是一个专注于部分观测时间序列(POTS)机器学习的Python工具箱。它集成了经典和前沿算法,支持数据插补、分类、聚类、预测和异常检测等任务。该工具箱提供统一API、详细文档和交互示例,简化POTS数据处理流程。PyPOTS支持多种神经网络模型,并具备超参数优化功能,为时间序列分析提供综合解决方案。

PyPOTS时间序列机器学习缺失值开源工具Github开源项目
<a href="https://github.com/WenjieDu/PyPOTS"> <img src="https://pypots.com/figs/pypots_logos/PyPOTS/logo_FFBG.svg" width="200" align="right"> </a> <h3 align="center">Welcome to PyPOTS</h3> <p align="center"><i>a Python toolbox for machine learning on Partially-Observed Time Series</i></p> <p align="center"> <a href="https://docs.pypots.com/en/latest/install.html#reasons-of-version-limitations-on-dependencies"> <img alt="Python version" src="https://img.shields.io/badge/Python-v3.8+-E97040?logo=python&logoColor=white"> </a> <a href="https://github.com/WenjieDu/PyPOTS"> <img alt="powered by Pytorch" src="https://img.shields.io/badge/PyTorch-%E2%9D%A4%EF%B8%8F-F8C6B5?logo=pytorch&logoColor=white"> </a> <a href="https://github.com/WenjieDu/PyPOTS/releases"> <img alt="the latest release version" src="https://img.shields.io/github/v/release/wenjiedu/pypots?color=EE781F&include_prereleases&label=Release&logo=github&logoColor=white"> </a> <a href="https://github.com/WenjieDu/PyPOTS/blob/main/LICENSE"> <img alt="BSD-3 license" src="https://img.shields.io/badge/License-BSD--3-E9BB41?logo=opensourceinitiative&logoColor=white"> </a> <a href="https://github.com/WenjieDu/PyPOTS#-community"> <img alt="Community" src="https://img.shields.io/badge/join_us-community!-C8A062"> </a> <a href="https://github.com/WenjieDu/PyPOTS/graphs/contributors"> <img alt="GitHub contributors" src="https://img.shields.io/github/contributors/wenjiedu/pypots?color=D8E699&label=Contributors&logo=GitHub"> </a> <a href="https://star-history.com/#wenjiedu/pypots"> <img alt="GitHub Repo stars" src="https://img.shields.io/github/stars/wenjiedu/pypots?logo=None&color=6BB392&label=%E2%98%85%20Stars"> </a> <a href="https://github.com/WenjieDu/PyPOTS/network/members"> <img alt="GitHub Repo forks" src="https://img.shields.io/github/forks/wenjiedu/pypots?logo=forgejo&logoColor=black&label=Forks"> </a> <a href="https://codeclimate.com/github/WenjieDu/PyPOTS"> <img alt="Code Climate maintainability" src="https://img.shields.io/codeclimate/maintainability-percentage/WenjieDu/PyPOTS?color=3C7699&label=Maintainability&logo=codeclimate"> </a> <a href="https://coveralls.io/github/WenjieDu/PyPOTS"> <img alt="Coveralls coverage" src="https://img.shields.io/coverallsCoverage/github/WenjieDu/PyPOTS?branch=main&logo=coveralls&color=75C1C4&label=Coverage"> </a> <a href="https://github.com/WenjieDu/PyPOTS/actions/workflows/testing_ci.yml"> <img alt="GitHub Testing" src="https://img.shields.io/github/actions/workflow/status/wenjiedu/pypots/testing_ci.yml?logo=circleci&color=C8D8E1&label=CI"> </a> <a href="https://docs.pypots.com"> <img alt="Docs building" src="https://img.shields.io/readthedocs/pypots?logo=readthedocs&label=Docs&logoColor=white&color=395260"> </a> <a href="https://anaconda.org/conda-forge/pypots"> <img alt="Conda downloads" src="https://img.shields.io/endpoint?url=https://pypots.com/figs/downloads_badges/conda_pypots_downloads.json"> </a> <a href="https://pepy.tech/project/pypots"> <img alt="PyPI downloads" src="https://img.shields.io/endpoint?url=https://pypots.com/figs/downloads_badges/pypi_pypots_downloads.json"> </a> <a href="https://arxiv.org/abs/2305.18811"> <img alt="arXiv DOI" src="https://img.shields.io/badge/DOI-10.48550/arXiv.2305.18811-F8F7F0"> </a> <a href="https://github.com/WenjieDu/PyPOTS/blob/main/README_zh.md"> <img alt="README in Chinese" src="https://pypots.com/figs/pypots_logos/readme/CN.svg"> </a> <a href="https://github.com/WenjieDu/PyPOTS/blob/main/README.md"> <img alt="README in English" src="https://pypots.com/figs/pypots_logos/readme/US.svg"> </a> <a href="https://github.com/WenjieDu/PyPOTS"> <img alt="PyPOTS Hits" src="https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2FPyPOTS%2FPyPOTS&count_bg=%23009A0A&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=Hits&edge_flat=false"> </a> </p>

⦿ Motivation: Due to all kinds of reasons like failure of collection sensors, communication error, and unexpected malfunction, missing values are common to see in time series from the real-world environment. This makes partially-observed time series (POTS) a pervasive problem in open-world modeling and prevents advanced data analysis. Although this problem is important, the area of machine learning on POTS still lacks a dedicated toolkit. PyPOTS is created to fill in this blank.

⦿ Mission: PyPOTS (pronounced "Pie Pots") is born to become a handy toolbox that is going to make machine learning on POTS easy rather than tedious, to help engineers and researchers focus more on the core problems in their hands rather than on how to deal with the missing parts in their data. PyPOTS will keep integrating classical and the latest state-of-the-art machine learning algorithms for partially-observed multivariate time series. For sure, besides various algorithms, PyPOTS is going to have unified APIs together with detailed documentation and interactive examples across algorithms as tutorials.

🤗 Please star this repo to help others notice PyPOTS if you think it is a useful toolkit. Please properly cite PyPOTS in your publications if it helps with your research. This really means a lot to our open-source research. Thank you!

The rest of this readme file is organized as follows: ❖ Available Algorithms, ❖ PyPOTS Ecosystem, ❖ Installation, ❖ Usage, ❖ Citing PyPOTS, ❖ Contribution, ❖ Community.

❖ Available Algorithms

PyPOTS supports imputation, classification, clustering, forecasting, and anomaly detection tasks on multivariate partially-observed time series with missing values. The table below shows the availability of each algorithm (sorted by Year) in PyPOTS for different tasks. The symbol indicates the algorithm is available for the corresponding task (note that models will be continuously updated in the future to handle tasks that are not currently supported. Stay tuned❗️).

🌟 Since v0.2, all neural-network models in PyPOTS has got hyperparameter-optimization support. This functionality is implemented with the Microsoft NNI framework. You may want to refer to our time-series imputation survey repo Awesome_Imputation to see how to config and tune the hyperparameters.

🔥 Note that all models whose name with 🧑‍🔧 in the table (e.g. Transformer, iTransformer, Informer etc.) are not originally proposed as algorithms for POTS data in their papers, and they cannot directly accept time series with missing values as input, let alone imputation. To make them applicable to POTS data, we specifically apply the embedding strategy and training approach (ORT+MIT) the same as we did in the SAITS paper[^1].

The task types are abbreviated as follows: IMPU: Imputation; FORE: Forecasting; CLAS: Classification; CLUS: Clustering; ANOD: Anomaly Detection. The paper references and links are all listed at the bottom of this file.

TypeAlgoIMPUFORECLASCLUSANODYear - Venue
LLMGungnir 🚀 [^36]Later in 2024
Neural NetImputeFormer🧑‍🔧[^34]2024 - KDD
Neural NetiTransformer🧑‍🔧[^24]2024 - ICLR
Neural NetSAITS[^1]2023 - ESWA
Neural NetFreTS🧑‍🔧[^23]2023 - NeurIPS
Neural NetKoopa🧑‍🔧[^29]2023 - NeurIPS
Neural NetCrossformer🧑‍🔧[^16]2023 - ICLR
Neural NetTimesNet[^14]2023 - ICLR
Neural NetPatchTST🧑‍🔧[^18]2023 - ICLR
Neural NetETSformer🧑‍🔧[^19]2023 - ICLR
Neural NetMICN🧑‍🔧[^27]2023 - ICLR
Neural NetDLinear🧑‍🔧[^17]2023 - AAAI
Neural NetTiDE🧑‍🔧[^28]2023 - TMLR
Neural NetSCINet🧑‍🔧[^30]2022 - NeurIPS
Neural NetNonstationary Tr.🧑‍🔧[^25]2022 - NeurIPS
Neural NetFiLM🧑‍🔧[^22]2022 - NeurIPS
Neural NetRevIN_SCINet🧑‍🔧[^31]2022 - ICLR
Neural NetPyraformer🧑‍🔧[^26]2022 - ICLR
Neural NetRaindrop[^5]2022 - ICLR
Neural NetFEDformer🧑‍🔧[^20]2022 - ICML
Neural NetAutoformer🧑‍🔧[^15]2021 - NeurIPS
Neural NetCSDI[^12]2021 - NeurIPS
Neural NetInformer🧑‍🔧[^21]2021 - AAAI
Neural NetUS-GAN[^10]2021 - AAAI
Neural NetCRLI[^6]2021 - AAAI
ProbabilisticBTTF[^8]2021 - TPAMI
Neural NetStemGNN🧑‍🔧[^33]2020 - NeurIPS
Neural NetReformer🧑‍🔧[^32]2020 - ICLR
Neural NetGP-VAE[^11]2020 - AISTATS
Neural NetVaDER[^7]2019 - GigaSci.
Neural NetM-RNN[^9]2019 - TBME
Neural NetBRITS[^3]2018 - NeurIPS
Neural NetGRU-D[^4]2018 - Sci. Rep.
Neural NetTCN🧑‍🔧[^35]2018 - arXiv
Neural NetTransformer🧑‍🔧[^2]2017 - NeurIPS
NaiveLerp
NaiveLOCF/NOCB
NaiveMean
NaiveMedian

💯 Contribute your model right now to increase your research impact! PyPOTS downloads are increasing rapidly (300K+ in total and 1K+ daily on PyPI so far), and your work will be widely used and cited by the community. Refer to the contribution guide to see how to include your model in PyPOTS.

❖ PyPOTS Ecosystem

At PyPOTS, things are related to coffee, which we're familiar with. Yes, this is a coffee universe! As you can see, there is a coffee pot in the PyPOTS logo. And what else? Please read on ;-)

<a href="https://github.com/WenjieDu/TSDB"> <img src="https://pypots.com/figs/pypots_logos/TSDB/logo_FFBG.svg" align="left" width="140" alt="TSDB logo"/> </a>

👈 Time series datasets are

编辑推荐精选

GPT Plus|Pro充值

GPT Plus|Pro充值

GPT充值

支持 ChatGPT Plus / Pro 充值服务,支付便捷,自动发货,售后可查。

GPT Image 2中文站

GPT Image 2中文站

AI 图片生成平台

GPT Image 2 是面向用户的 AI 图片生成平台,支持文生图、图生图及多模型创意工作流。

Vecbase

Vecbase

你的AI Agent团队

Vecbase 是专为 AI 团队打造的智能工作空间,将数据管理、模型协作与知识沉淀整合于一处。算法、产品与业务在同一平台无缝协同,让从数据到 AI 应用的落地更快一步。

音述AI

音述AI

全球首个AI音乐社区

音述AI是全球首个AI音乐社区,致力让每个人都能用音乐表达自我。音述AI提供零门槛AI创作工具,独创GETI法则帮助用户精准定义音乐风格,AI润色功能支持自动优化作品质感。音述AI支持交流讨论、二次创作与价值变现。针对中文用户的语言习惯与文化背景进行专门优化,支持国风融合、C-pop等本土音乐标签,让技术更好地承载人文表达。

QoderWork

QoderWork

阿里Qoder团队推出的桌面端AI智能体

QoderWork 是阿里推出的本地优先桌面 AI 智能体,适配 macOS14+/Windows10+,以自然语言交互实现文件管理、数据分析、AI 视觉生成、浏览器自动化等办公任务,自主拆解执行复杂工作流,数据本地运行零上传,技能市场可无限扩展,是高效的 Agentic 生产力办公助手。

lynote.ai

lynote.ai

一站式搞定所有学习需求

不再被海量信息淹没,开始真正理解知识。Lynote 可摘要 YouTube 视频、PDF、文章等内容。即时创建笔记,检测 AI 内容并下载资料,将您的学习效率提升 10 倍。

AniShort

AniShort

为AI短剧协作而生

专为AI短剧协作而生的AniShort正式发布,深度重构AI短剧全流程生产模式,整合创意策划、制作执行、实时协作、在线审片、资产复用等全链路功能,独创无限画布、双轨并行工业化工作流与Ani智能体助手,集成多款主流AI大模型,破解素材零散、版本混乱、沟通低效等行业痛点,助力3人团队效率提升800%,打造标准化、可追溯的AI短剧量产体系,是AI短剧团队协同创作、提升制作效率的核心工具。

seedancetwo2.0

seedancetwo2.0

能听懂你表达的视频模型

Seedance two是基于seedance2.0的中国大模型,支持图像、视频、音频、文本四种模态输入,表达方式更丰富,生成也更可控。

nano-banana纳米香蕉中文站

nano-banana纳米香蕉中文站

国内直接访问,限时3折

输入简单文字,生成想要的图片,纳米香蕉中文站基于 Google 模型的 AI 图片生成网站,支持文字生图、图生图。官网价格限时3折活动

扣子-AI办公

扣子-AI办公

职场AI,就用扣子

AI办公助手,复杂任务高效处理。办公效率低?扣子空间AI助手支持播客生成、PPT制作、网页开发及报告写作,覆盖科研、商业、舆情等领域的专家Agent 7x24小时响应,生活工作无缝切换,提升50%效率!

下拉加载更多