[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"similar-facebookresearch--Kats":3,"tool-facebookresearch--Kats":61},[4,18,26,36,44,53],{"id":5,"name":6,"github_repo":7,"description_zh":8,"stars":9,"difficulty_score":10,"last_commit_at":11,"category_tags":12,"status":17},4358,"openclaw","openclaw\u002Fopenclaw","OpenClaw 是一款专为个人打造的本地化 AI 助手，旨在让你在自己的设备上拥有完全可控的智能伙伴。它打破了传统 AI 助手局限于特定网页或应用的束缚，能够直接接入你日常使用的各类通讯渠道，包括微信、WhatsApp、Telegram、Discord、iMessage 等数十种平台。无论你在哪个聊天软件中发送消息，OpenClaw 都能即时响应，甚至支持在 macOS、iOS 和 Android 设备上进行语音交互，并提供实时的画布渲染功能供你操控。\n\n这款工具主要解决了用户对数据隐私、响应速度以及“始终在线”体验的需求。通过将 AI 部署在本地，用户无需依赖云端服务即可享受快速、私密的智能辅助，真正实现了“你的数据，你做主”。其独特的技术亮点在于强大的网关架构，将控制平面与核心助手分离，确保跨平台通信的流畅性与扩展性。\n\nOpenClaw 非常适合希望构建个性化工作流的技术爱好者、开发者，以及注重隐私保护且不愿被单一生态绑定的普通用户。只要具备基础的终端操作能力（支持 macOS、Linux 及 Windows WSL2），即可通过简单的命令行引导完成部署。如果你渴望拥有一个懂你",349277,3,"2026-04-06T06:32:30",[13,14,15,16],"Agent","开发框架","图像","数据工具","ready",{"id":19,"name":20,"github_repo":21,"description_zh":22,"stars":23,"difficulty_score":10,"last_commit_at":24,"category_tags":25,"status":17},3808,"stable-diffusion-webui","AUTOMATIC1111\u002Fstable-diffusion-webui","stable-diffusion-webui 是一个基于 Gradio 构建的网页版操作界面，旨在让用户能够轻松地在本地运行和使用强大的 Stable Diffusion 图像生成模型。它解决了原始模型依赖命令行、操作门槛高且功能分散的痛点，将复杂的 AI 绘图流程整合进一个直观易用的图形化平台。\n\n无论是希望快速上手的普通创作者、需要精细控制画面细节的设计师，还是想要深入探索模型潜力的开发者与研究人员，都能从中获益。其核心亮点在于极高的功能丰富度：不仅支持文生图、图生图、局部重绘（Inpainting）和外绘（Outpainting）等基础模式，还独创了注意力机制调整、提示词矩阵、负向提示词以及“高清修复”等高级功能。此外，它内置了 GFPGAN 和 CodeFormer 等人脸修复工具，支持多种神经网络放大算法，并允许用户通过插件系统无限扩展能力。即使是显存有限的设备，stable-diffusion-webui 也提供了相应的优化选项，让高质量的 AI 艺术创作变得触手可及。",162132,"2026-04-05T11:01:52",[14,15,13],{"id":27,"name":28,"github_repo":29,"description_zh":30,"stars":31,"difficulty_score":32,"last_commit_at":33,"category_tags":34,"status":17},1381,"everything-claude-code","affaan-m\u002Feverything-claude-code","everything-claude-code 是一套专为 AI 编程助手（如 Claude Code、Codex、Cursor 等）打造的高性能优化系统。它不仅仅是一组配置文件，而是一个经过长期实战打磨的完整框架，旨在解决 AI 代理在实际开发中面临的效率低下、记忆丢失、安全隐患及缺乏持续学习能力等核心痛点。\n\n通过引入技能模块化、直觉增强、记忆持久化机制以及内置的安全扫描功能，everything-claude-code 能显著提升 AI 在复杂任务中的表现，帮助开发者构建更稳定、更智能的生产级 AI 代理。其独特的“研究优先”开发理念和针对 Token 消耗的优化策略，使得模型响应更快、成本更低，同时有效防御潜在的攻击向量。\n\n这套工具特别适合软件开发者、AI 研究人员以及希望深度定制 AI 工作流的技术团队使用。无论您是在构建大型代码库，还是需要 AI 协助进行安全审计与自动化测试，everything-claude-code 都能提供强大的底层支持。作为一个曾荣获 Anthropic 黑客大奖的开源项目，它融合了多语言支持与丰富的实战钩子（hooks），让 AI 真正成长为懂上",143909,2,"2026-04-07T11:33:18",[14,13,35],"语言模型",{"id":37,"name":38,"github_repo":39,"description_zh":40,"stars":41,"difficulty_score":32,"last_commit_at":42,"category_tags":43,"status":17},2271,"ComfyUI","Comfy-Org\u002FComfyUI","ComfyUI 是一款功能强大且高度模块化的视觉 AI 引擎，专为设计和执行复杂的 Stable Diffusion 图像生成流程而打造。它摒弃了传统的代码编写模式，采用直观的节点式流程图界面，让用户通过连接不同的功能模块即可构建个性化的生成管线。\n\n这一设计巧妙解决了高级 AI 绘图工作流配置复杂、灵活性不足的痛点。用户无需具备编程背景，也能自由组合模型、调整参数并实时预览效果，轻松实现从基础文生图到多步骤高清修复等各类复杂任务。ComfyUI 拥有极佳的兼容性，不仅支持 Windows、macOS 和 Linux 全平台，还广泛适配 NVIDIA、AMD、Intel 及苹果 Silicon 等多种硬件架构，并率先支持 SDXL、Flux、SD3 等前沿模型。\n\n无论是希望深入探索算法潜力的研究人员和开发者，还是追求极致创作自由度的设计师与资深 AI 绘画爱好者，ComfyUI 都能提供强大的支持。其独特的模块化架构允许社区不断扩展新功能，使其成为当前最灵活、生态最丰富的开源扩散模型工具之一，帮助用户将创意高效转化为现实。",107888,"2026-04-06T11:32:50",[14,15,13],{"id":45,"name":46,"github_repo":47,"description_zh":48,"stars":49,"difficulty_score":32,"last_commit_at":50,"category_tags":51,"status":17},4721,"markitdown","microsoft\u002Fmarkitdown","MarkItDown 是一款由微软 AutoGen 团队打造的轻量级 Python 工具，专为将各类文件高效转换为 Markdown 格式而设计。它支持 PDF、Word、Excel、PPT、图片（含 OCR）、音频（含语音转录）、HTML 乃至 YouTube 链接等多种格式的解析，能够精准提取文档中的标题、列表、表格和链接等关键结构信息。\n\n在人工智能应用日益普及的今天，大语言模型（LLM）虽擅长处理文本，却难以直接读取复杂的二进制办公文档。MarkItDown 恰好解决了这一痛点，它将非结构化或半结构化的文件转化为模型“原生理解”且 Token 效率极高的 Markdown 格式，成为连接本地文件与 AI 分析 pipeline 的理想桥梁。此外，它还提供了 MCP（模型上下文协议）服务器，可无缝集成到 Claude Desktop 等 LLM 应用中。\n\n这款工具特别适合开发者、数据科学家及 AI 研究人员使用，尤其是那些需要构建文档检索增强生成（RAG）系统、进行批量文本分析或希望让 AI 助手直接“阅读”本地文件的用户。虽然生成的内容也具备一定可读性，但其核心优势在于为机器",93400,"2026-04-06T19:52:38",[52,14],"插件",{"id":54,"name":55,"github_repo":56,"description_zh":57,"stars":58,"difficulty_score":10,"last_commit_at":59,"category_tags":60,"status":17},4487,"LLMs-from-scratch","rasbt\u002FLLMs-from-scratch","LLMs-from-scratch 是一个基于 PyTorch 的开源教育项目，旨在引导用户从零开始一步步构建一个类似 ChatGPT 的大型语言模型（LLM）。它不仅是同名技术著作的官方代码库，更提供了一套完整的实践方案，涵盖模型开发、预训练及微调的全过程。\n\n该项目主要解决了大模型领域“黑盒化”的学习痛点。许多开发者虽能调用现成模型，却难以深入理解其内部架构与训练机制。通过亲手编写每一行核心代码，用户能够透彻掌握 Transformer 架构、注意力机制等关键原理，从而真正理解大模型是如何“思考”的。此外，项目还包含了加载大型预训练权重进行微调的代码，帮助用户将理论知识延伸至实际应用。\n\nLLMs-from-scratch 特别适合希望深入底层原理的 AI 开发者、研究人员以及计算机专业的学生。对于不满足于仅使用 API，而是渴望探究模型构建细节的技术人员而言，这是极佳的学习资源。其独特的技术亮点在于“循序渐进”的教学设计：将复杂的系统工程拆解为清晰的步骤，配合详细的图表与示例，让构建一个虽小但功能完备的大模型变得触手可及。无论你是想夯实理论基础，还是为未来研发更大规模的模型做准备",90106,"2026-04-06T11:19:32",[35,15,13,14],{"id":62,"github_repo":63,"name":64,"description_en":65,"description_zh":66,"ai_summary_zh":66,"readme_en":67,"readme_zh":68,"quickstart_zh":69,"use_case_zh":70,"hero_image_url":71,"owner_login":72,"owner_name":73,"owner_avatar_url":74,"owner_bio":75,"owner_company":76,"owner_location":76,"owner_email":76,"owner_twitter":76,"owner_website":77,"owner_url":78,"languages":79,"stars":102,"forks":103,"last_commit_at":104,"license":105,"difficulty_score":106,"env_os":107,"env_gpu":107,"env_ram":107,"env_deps":108,"category_tags":113,"github_topics":76,"view_count":32,"oss_zip_url":76,"oss_zip_packed_at":76,"status":17,"created_at":114,"updated_at":115,"faqs":116,"releases":152},5049,"facebookresearch\u002FKats","Kats","Kats, a kit to analyze time series data, a lightweight, easy-to-use, generalizable, and extendable framework to perform time series analysis, from understanding the key statistics and characteristics, detecting change points and anomalies, to forecasting future trends. ","Kats 是由 Facebook 基础设施数据科学团队开源的一款轻量级时间序列分析工具包。它旨在为开发者提供一站式的解决方案，涵盖从基础统计特征理解、异常与变点检测，到未来趋势预测及特征提取等全流程任务。\n\n在实际应用中，处理时间序列数据往往面临算法选择复杂、流程分散等挑战。Kats 通过封装成熟的模型（如 Prophet）和经典算法（如 CUSUM），将复杂的数学逻辑转化为简洁易用的 Python 接口，帮助用户快速构建分析管道，高效识别数据中的回归、突变或潜在规律。\n\n这款工具特别适合数据科学家、机器学习工程师以及相关领域的研究人员使用。无论是需要监控服务器指标波动，还是预测业务增长趋势，Kats 都能提供通用且可扩展的框架支持。其核心亮点在于“轻量化”与“全能性”的平衡：既支持最小化安装以适应特定场景，又提供了丰富的多变量分析和嵌入功能。配合详尽的教程与活跃的社区支持，Kats 让时间序列分析变得更加直观和高效，是工业界落地数据科学项目的得力助手。","\u003Cdiv align=\"center\">\n\u003Cimg src=\"kats_logo.svg\" width=\"40%\"\u002F>\n\u003C\u002Fdiv>\n\n\u003Cdiv align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Ffacebookresearch\u002FKats\u002Factions\">\n  \u003Cimg alt=\"Github Actions\" src=\"https:\u002F\u002Fgithub.com\u002Ffacebookresearch\u002FKats\u002Factions\u002Fworkflows\u002Fbuild_and_test.yml\u002Fbadge.svg\"\u002F>\n  \u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fpypi.python.org\u002Fpypi\u002Fkats\">\n  \u003Cimg alt=\"PyPI Version\" src=\"https:\u002F\u002Fimg.shields.io\u002Fpypi\u002Fv\u002Fkats.svg\"\u002F>\n  \u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Ffacebookresearch\u002FKats\u002Fblob\u002Fmaster\u002FCONTRIBUTING.md\">\n  \u003Cimg alt=\"PRs Welcome\" src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FPRs-welcome-brightgreen.svg\"\u002F>\n  \u003C\u002Fa>\n\u003C\u002Fdiv>\n\n## Description\n\nKats is a toolkit to analyze time series data, a lightweight, easy-to-use, and generalizable framework to perform time series analysis. Time series analysis is an essential component of Data Science and Engineering work at industry, from understanding the key statistics and characteristics, detecting regressions and anomalies, to forecasting future trends. Kats aims to provide the one-stop shop for time series analysis, including detection, forecasting, feature extraction\u002Fembedding, multivariate analysis, etc.\n\nKats is released by Facebook's *Infrastructure Data Science* team. It is available for download on [PyPI](https:\u002F\u002Fpypi.python.org\u002Fpypi\u002Fkats\u002F).\n\n## Important links\n\n- Homepage: https:\u002F\u002Ffacebookresearch.github.io\u002FKats\u002F\n- Kats Python package: https:\u002F\u002Fpypi.org\u002Fproject\u002Fkats\u002F\n- Facebook Engineering Blog Post: https:\u002F\u002Fengineering.fb.com\u002F2021\u002F06\u002F21\u002Fopen-source\u002Fkats\u002F\n- Source code repository: https:\u002F\u002Fgithub.com\u002Ffacebookresearch\u002Fkats\n- Contributing: https:\u002F\u002Fgithub.com\u002Ffacebookresearch\u002FKats\u002Fblob\u002Fmaster\u002FCONTRIBUTING.md\n- Tutorials: https:\u002F\u002Fgithub.com\u002Ffacebookresearch\u002FKats\u002Ftree\u002Fmaster\u002Ftutorials\n\n## Installation in Python\n\nKats is on PyPI, so you can use `pip` to install it.\n\n```bash\npip install --upgrade pip\npip install kats\n```\n\nIf you need only a small subset of Kats, you can install a minimal version of Kats with\n```bash\nMINIMAL_KATS=1 pip install kats\n```\nwhich omits many dependencies (everything in `test_requirements.txt`).\nHowever, this will disable many functionalities and cause `import kats` to log\nwarnings. See `setup.py` for full details and options.\n\n## Examples\n\nHere are a few sample snippets from a subset of Kats offerings:\n\n### Forecasting\n\nUsing `Prophet` model to forecast the `air_passengers` data set.\n\n```python\nimport pandas as pd\n\nfrom kats.consts import TimeSeriesData\nfrom kats.models.prophet import ProphetModel, ProphetParams\n\n# take `air_passengers` data as an example\nair_passengers_df = pd.read_csv(\n    \"..\u002Fkats\u002Fdata\u002Fair_passengers.csv\",\n    header=0,\n    names=[\"time\", \"passengers\"],\n)\n\n# convert to TimeSeriesData object\nair_passengers_ts = TimeSeriesData(air_passengers_df)\n\n# create a model param instance\nparams = ProphetParams(seasonality_mode='multiplicative') # additive mode gives worse results\n\n# create a prophet model instance\nm = ProphetModel(air_passengers_ts, params)\n\n# fit model simply by calling m.fit()\nm.fit()\n\n# make prediction for next 30 month\nfcst = m.predict(steps=30, freq=\"MS\")\n```\n\n### Detection\n\nUsing `CUSUM` detection algorithm on simulated data set.\n\n```python\n# import packages\nimport numpy as np\nimport pandas as pd\n\nfrom kats.consts import TimeSeriesData\nfrom kats.detectors.cusum_detection import CUSUMDetector\n\n# simulate time series with increase\nnp.random.seed(10)\ndf_increase = pd.DataFrame(\n    {\n        'time': pd.date_range('2019-01-01', '2019-03-01'),\n        'increase':np.concatenate([np.random.normal(1,0.2,30), np.random.normal(2,0.2,30)]),\n    }\n)\n\n# convert to TimeSeriesData object\ntimeseries = TimeSeriesData(df_increase)\n\n# run detector and find change points\nchange_points = CUSUMDetector(timeseries).detector()\n```\n\n### TSFeatures\n\nWe can extract meaningful features from the given time series data\n\n```python\n# Initiate feature extraction class\nimport pandas as pd\nfrom kats.consts import TimeSeriesData\nfrom kats.tsfeatures.tsfeatures import TsFeatures\n\n# take `air_passengers` data as an example\nair_passengers_df = pd.read_csv(\n    \"..\u002Fkats\u002Fdata\u002Fair_passengers.csv\",\n    header=0,\n    names=[\"time\", \"passengers\"],\n)\n\n# convert to TimeSeriesData object\nair_passengers_ts = TimeSeriesData(air_passengers_df)\n\n# calculate the TsFeatures\nfeatures = TsFeatures().transform(air_passengers_ts)\n```\n\n## Citing Kats\n\nIf you use Kats in your work or research, please use the following BibTeX entry.\n\n```\n@software{Jiang_KATS_2022,\nauthor = {Jiang, Xiaodong and Srivastava, Sudeep and Chatterjee, Sourav and Yu, Yang and Handler, Jeffrey and Zhang, Peiyi and Bopardikar, Rohan and Li, Dawei and Lin, Yanjun and Thakore, Uttam and Brundage, Michael and Holt, Ginger and Komurlu, Caner and Nagalla, Rakshita and Wang, Zhichao and Sun, Hechao and Gao, Peng and Cheung, Wei and Gao, Jun and Wang, Qi and Guerard, Marius and Kazemi, Morteza and Chen, Yulin and Zhou, Chong and Lee, Sean and Laptev, Nikolay and Levendovszky, Tihamér and Taylor, Jake and Qian, Huijun and Zhang, Jian and Shoydokova, Aida and Singh, Trisha and Zhu, Chengjun and Baz, Zeynep and Bergmeir, Christoph and Yu, Di and Koylan, Ahmet and Jiang, Kun and Temiyasathit, Ploy and Yurtbay, Emre},\nlicense = {MIT License},\nmonth = {3},\ntitle = {{Kats}},\nurl = {https:\u002F\u002Fgithub.com\u002Ffacebookresearch\u002FKats},\nversion = {0.2.0},\nyear = {2022}\n}\n```\n\n## Core Algorithm and Related Papers\n\nCore Algorithm\n* Self-supervised learning for fast and scalable time series hyper-parameter tuning\n\nA self-supervised framework designed to automatically optimize hyper-parameters for time-series forecasting models at scale. The method reduces tuning cost, improves generalization across heterogeneous datasets, and supports efficient deployment in large production forecasting environments. The accompanying research was presented as an invited talk at international forecasting venues and has been referenced in work on automated model selection and adaptive time-series learning.\n\nMeta AI Official post: [Large-scale forecasting: Self-supervised learning framework for hyperparameter tuning](https:\u002F\u002Fai.meta.com\u002Fblog\u002Flarge-scale-forecasting-self-supervised-learning-framework-for-hyper-parameter-tuning\u002F)\n\nPaper: [Self-supervised Learning for Fast and Scalable Time Series Hyper-parameter Tuning](https:\u002F\u002Farxiv.org\u002Fabs\u002F2102.05740)\n\nInvited talk: [the 40th International Symposium on Forecasting](https:\u002F\u002Fisf.forecasters.org\u002Fwp-content\u002Fuploads\u002FISF20_program.pdf).\n\nIf you use this algorithm in your work or research, please use the following BibTeX entry.\n```\n@article{Zhang_SSL-HPT_2021,\n  author = {Zhang, Peiyi and Jiang, Xiaodong and Holt, Ginger M. and Laptev, Nikolay Pavlovich and Komurlu, Caner and Gao, Peng and Yu, Yang},\n  title  = {Self-supervised Learning for Fast and Scalable Time Series Hyper-parameter Tuning},\n  year   = {2021},\n  eprint = {2102.05740},\n  archivePrefix = {arXiv},\n  primaryClass = {cs.LG},\n  url    = {https:\u002F\u002Farxiv.org\u002Fpdf\u002F2102.05740}\n}\n```\n\n## Changelog\n\n### Version 0.2.0\n* Forecasting\n    * Added global model, a neural network forecasting model\n    * Added [global model tutorial](https:\u002F\u002Fgithub.com\u002Ffacebookresearch\u002FKats\u002Fblob\u002Fmain\u002Ftutorials\u002Fkats_205_globalmodel.ipynb)\n    * Consolidated backtesting APIs and some minor bug fixes\n* Detection\n    * Added model optimizer for anomaly\u002F changepoint detection\n    * Added evaluators for anomaly\u002Fchangepoint detection\n    * Improved simulators, to build synthetic data and inject anomalies\n    * Added new detectors: ProphetTrendDetector, Dynamic Time Warping based detectors\n    * Support for meta-learning, to recommend anomaly detection algorithms and parameters for your dataset\n    * Standardized API for some of our legacy detectors: OutlierDetector, MKDetector\n    * Support for Seasonality Removal in StatSigDetector\n* TsFeatures\n    * Added time-based features\n* Others\n    * Bug fixes, code coverage improvement, etc.\n\n### Version 0.1.0\n\n* Initial release\n\n## Contributors\nKats is currentely maintaned by community with the main contributions and leading from [Nickolai Kniazev](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fnickknyazev\u002F) and Peter Shaffery\n\nKats is a project with several skillful researchers and engineers contributing to it.\nKats was started and built by [Xiaodong Jiang](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fxdjiang\u002F) with major contributions coming\nfrom many talented individuals in various forms and means. A non-exhaustive but growing list needs to mention: [Sudeep Srivastava](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fsudeep-srivastava-2129484\u002F), [Sourav Chatterjee](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fsouravc83\u002F), [Jeff Handler](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fjeffhandl\u002F), [Rohan Bopardikar](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Frohan-bopardikar-30a99638), [Dawei Li](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Flidawei\u002F), [Yanjun Lin](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fyanjun-lin\u002F), [Yang Yu](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fyangyu2720\u002F), [Michael Brundage](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fmichaelb), [Caner Komurlu](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fckomurlu\u002F), [Rakshita Nagalla](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Frakshita-nagalla\u002F), [Zhichao Wang](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fzhichaowang\u002F), [Hechao Sun](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fhechao-sun-83b9ba4b\u002F), [Peng Gao](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fpeng-gao-9137a24b\u002F), [Wei Cheung](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fweizhicheung\u002F), [Jun Gao](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fjun-gao-71352b64\u002F), [Qi Wang](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fqi-wang-9231a783\u002F), [Morteza Kazemi](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fmorteza-kazemi-pmp-csm\u002F), [Tihamér Levendovszky](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Ftiham%C3%A9r-levendovszky-29639b5\u002F), [Jian Zhang](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fjian-zhang-73718917\u002F), [Ahmet Koylan](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fahmetburhan\u002F), [Kun Jiang](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fkunqiang-jiang-ph-d-0988aa1b\u002F), [Aida Shoydokova](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fashoydok\u002F), [Ploy Temiyasathit](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fnutcha-temiyasathit\u002F), Sean Lee, [Nikolay Pavlovich Laptev](http:\u002F\u002Fwww.nikolaylaptev.com\u002F), [Peiyi Zhang](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fpyzhang\u002F), [Emre Yurtbay](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Femre-yurtbay-27516313a\u002F), [Daniel Dequech](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fdaniel-dequech\u002F), [Rui Yan](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Frui-yan\u002F), [William Luo](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fwqcluo\u002F), [Marius Guerard](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fmariusguerard\u002F), [Pietari Pulkkinen](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fpietaripulkkinen\u002F), [Uttam Thakore](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Futtam-thakore\u002F), [Trisha Singh](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Ftrishasingh2696\u002F), [Huijun Qian](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fhuijun-qian-0845a958\u002F), [Chengjun Zhu](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fchengjunzhu\u002F), [Di Yu](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fdiyu05\u002F), [Zeynep Erkin Baz](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fzeynep-erkin-baz-51198a21), and [Christoph Bergmeir](https:\u002F\u002Fau.linkedin.com\u002Fin\u002Fchristoph-bergmeir-00711a14\u002F).\n\n## License\n\nKats is licensed under the [MIT license](LICENSE).\n","\u003Cdiv align=\"center\">\n\u003Cimg src=\"kats_logo.svg\" width=\"40%\"\u002F>\n\u003C\u002Fdiv>\n\n\u003Cdiv align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Ffacebookresearch\u002FKats\u002Factions\">\n  \u003Cimg alt=\"Github Actions\" src=\"https:\u002F\u002Fgithub.com\u002Ffacebookresearch\u002FKats\u002Factions\u002Fworkflows\u002Fbuild_and_test.yml\u002Fbadge.svg\"\u002F>\n  \u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fpypi.python.org\u002Fpypi\u002Fkats\">\n  \u003Cimg alt=\"PyPI Version\" src=\"https:\u002F\u002Fimg.shields.io\u002Fpypi\u002Fv\u002Fkats.svg\"\u002F>\n  \u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Ffacebookresearch\u002FKats\u002Fblob\u002Fmaster\u002FCONTRIBUTING.md\">\n  \u003Cimg alt=\"PRs Welcome\" src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FPRs-welcome-brightgreen.svg\"\u002F>\n  \u003C\u002Fa>\n\u003C\u002Fdiv>\n\n## 简介\n\nKats 是一个用于分析时间序列数据的工具包，它是一个轻量级、易于使用且具有通用性的框架，可用于执行各种时间序列分析任务。时间序列分析是工业界数据科学和工程工作中的重要组成部分，从理解关键统计信息和特征、检测趋势变化与异常，到预测未来趋势，都离不开这一技术。Kats 的目标是为时间序列分析提供一站式解决方案，涵盖检测、预测、特征提取\u002F嵌入、多变量分析等多个方面。\n\nKats 由 Facebook 的 *基础设施数据科学* 团队发布，可在 [PyPI](https:\u002F\u002Fpypi.python.org\u002Fpypi\u002Fkats\u002F) 上下载。\n\n## 重要链接\n\n- 官网：https:\u002F\u002Ffacebookresearch.github.io\u002FKats\u002F\n- Kats Python 包：https:\u002F\u002Fpypi.org\u002Fproject\u002Fkats\u002F\n- Facebook 工程博客文章：https:\u002F\u002Fengineering.fb.com\u002F2021\u002F06\u002F21\u002Fopen-source\u002Fkats\u002F\n- 源代码仓库：https:\u002F\u002Fgithub.com\u002Ffacebookresearch\u002Fkats\n- 贡献指南：https:\u002F\u002Fgithub.com\u002Ffacebookresearch\u002FKats\u002Fblob\u002Fmaster\u002FCONTRIBUTING.md\n- 教程：https:\u002F\u002Fgithub.com\u002Ffacebookresearch\u002FKats\u002Ftree\u002Fmaster\u002Ftutorials\n\n## Python 安装\n\nKats 已发布在 PyPI 上，因此可以使用 `pip` 进行安装。\n\n```bash\npip install --upgrade pip\npip install kats\n```\n\n如果您只需要 Kats 的一小部分功能，也可以安装精简版：\n\n```bash\nMINIMAL_KATS=1 pip install kats\n```\n\n该命令会省略许多依赖项（即 `test_requirements.txt` 中列出的所有内容）。不过，这样做会禁用许多功能，并可能导致 `import kats` 时出现警告。有关详细信息和选项，请参阅 `setup.py` 文件。\n\n## 示例\n\n以下是 Kats 提供的部分功能示例：\n\n### 预测\n\n使用 `Prophet` 模型对 `air_passengers` 数据集进行预测。\n\n```python\nimport pandas as pd\n\nfrom kats.consts import TimeSeriesData\nfrom kats.models.prophet import ProphetModel, ProphetParams\n\n# 以 air_passengers 数据为例\nair_passengers_df = pd.read_csv(\n    \"..\u002Fkats\u002Fdata\u002Fair_passengers.csv\",\n    header=0,\n    names=[\"time\", \"passengers\"],\n)\n\n# 转换为 TimeSeriesData 对象\nair_passengers_ts = TimeSeriesData(air_passengers_df)\n\n# 创建模型参数实例\nparams = ProphetParams(seasonality_mode='multiplicative') # additive mode 效果较差\n\n# 创建 Prophet 模型实例\nm = ProphetModel(air_passengers_ts, params)\n\n# 调用 m.fit() 即可完成模型训练\nm.fit()\n\n# 预测未来 30 个月的数据\nfcst = m.predict(steps=30, freq=\"MS\")\n```\n\n### 检测\n\n使用 `CUSUM` 检测算法对模拟数据集进行异常检测。\n\n```python\n# 导入相关库\nimport numpy as np\nimport pandas as pd\n\nfrom kats.consts import TimeSeriesData\nfrom kats.detectors.cusum_detection import CUSUMDetector\n\n# 模拟一段逐渐上升的时间序列\nnp.random.seed(10)\ndf_increase = pd.DataFrame(\n    {\n        'time': pd.date_range('2019-01-01', '2019-03-01'),\n        'increase':np.concatenate([np.random.normal(1,0.2,30), np.random.normal(2,0.2,30)]),\n    }\n)\n\n# 转换为 TimeSeriesData 对象\ntimeseries = TimeSeriesData(df_increase)\n\n# 运行检测器并找出变化点\nchange_points = CUSUMDetector(timeseries).detector()\n```\n\n### 时间序列特征提取\n\n我们可以从给定的时间序列数据中提取有意义的特征。\n\n```python\n# 初始化特征提取类\nimport pandas as pd\nfrom kats.consts import TimeSeriesData\nfrom kats.tsfeatures.tsfeatures import TsFeatures\n\n# 以 air_passengers 数据为例\nair_passengers_df = pd.read_csv(\n    \"..\u002Fkats\u002Fdata\u002Fair_passengers.csv\",\n    header=0,\n    names=[\"time\", \"passengers\"],\n)\n\n# 转换为 TimeSeriesData 对象\nair_passengers_ts = TimeSeriesData(air_passengers_df)\n\n# 计算时间序列特征\nfeatures = TsFeatures().transform(air_passengers_ts)\n```\n\n## 引用 Kats\n\n如果您在工作或研究中使用了 Kats，请使用以下 BibTeX 条目：\n\n```\n@software{Jiang_KATS_2022,\nauthor = {Jiang, Xiaodong and Srivastava, Sudeep and Chatterjee, Sourav and Yu, Yang and Handler, Jeffrey and Zhang, Peiyi and Bopardikar, Rohan and Li, Dawei and Lin, Yanjun and Thakore, Uttam and Brundage, Michael and Holt, Ginger and Komurlu, Caner and Nagalla, Rakshita and Wang, Zhichao and Sun, Hechao and Gao, Peng and Cheung, Wei and Gao, Jun and Wang, Qi and Guerard, Marius and Kazemi, Morteza and Chen, Yulin and Zhou, Chong and Lee, Sean and Laptev, Nikolay and Levendovszky, Tihamér and Taylor, Jake and Qian, Huijun and Zhang, Jian and Shoydokova, Aida and Singh, Trisha and Zhu, Chengjun and Baz, Zeynep and Bergmeir, Christoph and Yu, Di and Koylan, Ahmet and Jiang, Kun and Temiyasathit, Ploy and Yurtbay, Emre},\nlicense = {MIT License},\nmonth = {3},\ntitle = {{Kats}},\nurl = {https:\u002F\u002Fgithub.com\u002Ffacebookresearch\u002FKats},\nversion = {0.2.0},\nyear = {2022}\n}\n```\n\n## 核心算法及相关论文\n\n**核心算法**  \n* 自监督学习用于快速且可扩展的时间序列超参数调优  \n\n该自监督框架旨在大规模自动优化时间序列预测模型的超参数。该方法能够显著降低调优成本，提升模型在异构数据集上的泛化能力，并支持高效部署于大型生产预测环境。相关研究成果曾受邀在国际预测会议上发表，并被用于自动化模型选择和自适应时间序列学习等领域。\n\nMeta AI 官方帖子：[大规模预测：用于超参数调优的自监督学习框架](https:\u002F\u002Fai.meta.com\u002Fblog\u002Flarge-scale-forecasting-self-supervised-learning-framework-for-hyper-parameter-tuning\u002F)\n\n论文：[快速且可扩展的时间序列超参数调优的自监督学习](https:\u002F\u002Farxiv.org\u002Fabs\u002F2102.05740)\n\n受邀报告：[第 40 届国际预测研讨会](https:\u002F\u002Fisf.forecasters.org\u002Fwp-content\u002Fuploads\u002FISF20_program.pdf)。\n\n如果您在工作或研究中使用了此算法，请引用以下 BibTeX 条目：\n```\n@article{Zhang_SSL-HPT_2021,\n  author = {Zhang, Peiyi and Jiang, Xiaodong and Holt, Ginger M. and Laptev, Nikolay Pavlovich and Komurlu, Caner and Gao, Peng and Yu, Yang},\n  title  = {Self-supervised Learning for Fast and Scalable Time Series Hyper-parameter Tuning},\n  year   = {2021},\n  eprint = {2102.05740},\n  archivePrefix = {arXiv},\n  primaryClass = {cs.LG},\n  url    = {https:\u002F\u002Farxiv.org\u002Fpdf\u002F2102.05740}\n}\n```\n\n## 更改日志\n\n### 版本 0.2.0\n* 预测\n    * 新增全局模型，一种基于神经网络的预测模型\n    * 新增[全局模型教程](https:\u002F\u002Fgithub.com\u002Ffacebookresearch\u002FKats\u002Fblob\u002Fmain\u002Ftutorials\u002Fkats_205_globalmodel.ipynb)\n    * 整合了回测API，并进行了一些小的错误修复\n* 检测\n    * 新增异常\u002F变点检测的模型优化器\n    * 新增异常\u002F变点检测的评估工具\n    * 改进了模拟器，用于生成合成数据并注入异常\n    * 新增检测器：ProphetTrendDetector、基于动态时间规整的检测器\n    * 支持元学习，为您的数据集推荐异常检测算法和参数\n    * 对部分旧版检测器进行了标准化API处理：OutlierDetector、MKDetector\n    * 在StatSigDetector中支持季节性去除\n* TsFeatures\n    * 新增基于时间的特征\n* 其他\n    * 错误修复、代码覆盖率提升等。\n\n### 版本 0.1.0\n\n* 初始发布\n\n## 贡献者\nKats目前由社区维护，主要贡献者及负责人是[Nickolai Kniazev](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fnickknyazev\u002F)和Peter Shaffery。\n\nKats是一个汇聚了众多优秀研究人员和工程师的项目。该项目由[Xiaodong Jiang](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fxdjiang\u002F)发起并构建，随后得到了许多才华横溢的个人在不同形式和方式上的重要贡献。以下是一份不完全但不断扩充的名单：[Sudeep Srivastava](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fsudeep-srivastava-2129484\u002F)、[Sourav Chatterjee](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fsouravc83\u002F)、[Jeff Handler](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fjeffhandl\u002F)、[Rohan Bopardikar](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Frohan-bopardikar-30a99638)、[Dawei Li](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Flidawei\u002F)、[Yanjun Lin](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fyanjun-lin\u002F)、[Yang Yu](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fyangyu2720\u002F)、[Michael Brundage](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fmichaelb)、[Caner Komurlu](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fckomurlu\u002F)、[Rakshita Nagalla](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Frakshita-nagalla\u002F)、[Zhichao Wang](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fzhichaowang\u002F)、[Hechao Sun](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fhechao-sun-83b9ba4b\u002F)、[Peng Gao](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fpeng-gao-9137a24b\u002F)、[Wei Cheung](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fweizhicheung\u002F)、[Jun Gao](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fjun-gao-71352b64\u002F)、[Qi Wang](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fqi-wang-9231a783\u002F)、[Morteza Kazemi](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fmorteza-kazemi-pmp-csm\u002F)、[Tihamér Levendovszky](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Ftiham%C3%A9r-levendovszky-29639b5\u002F)、[Jian Zhang](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fjian-zhang-73718917\u002F)、[Ahmet Koylan](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fahmetburhan\u002F)、[Kun Jiang](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fkunqiang-jiang-ph-d-0988aa1b\u002F)、[Aida Shoydokova](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fashoydok\u002F)、[Ploy Temiyasathit](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fnutcha-temiyasathit\u002F)、Sean Lee、[Nikolay Pavlovich Laptev](http:\u002F\u002Fwww.nikolaylaptev.com\u002F)、[Peiyi Zhang](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fpyzhang\u002F)、[Emre Yurtbay](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Femre-yurtbay-27516313a\u002F)、[Daniel Dequech](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fdaniel-dequech\u002F)、[Rui Yan](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Frui-yan\u002F)、[William Luo](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fwqcluo\u002F)、[Marius Guerard](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fmariusguerard\u002F)、[Pietari Pulkkinen](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fpietaripulkkinen\u002F)、[Uttam Thakore](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Futtam-thakore\u002F)、[Trisha Singh](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Ftrishasingh2696\u002F)、[Huijun Qian](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fhuijun-qian-0845a958\u002F)、[Chengjun Zhu](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fchengjunzhu\u002F)、[Di Yu](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fdiyu05\u002F)、[Zeynep Erkin Baz](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fzeynep-erkin-baz-51198a21)以及[Christoph Bergmeir](https:\u002F\u002Fau.linkedin.com\u002Fin\u002Fchristoph-bergmeir-00711a14\u002F)。\n\n## 许可证\n\nKats采用[MIT许可证](LICENSE)授权。","# Kats 快速上手指南\n\nKats 是由 Facebook（Meta）基础设施数据科学团队开源的时间序列分析工具包。它轻量、易用且通用，涵盖时间序列的统计特征分析、异常检测、趋势预测、特征提取及多变量分析等功能，是进行时间序列数据处理的一站式解决方案。\n\n## 环境准备\n\n在开始之前，请确保您的开发环境满足以下要求：\n\n*   **操作系统**：Linux, macOS 或 Windows\n*   **Python 版本**：推荐 Python 3.7 及以上版本\n*   **前置依赖**：\n    *   `pip` (Python 包管理工具)\n    *   核心依赖包括 `pandas`, `numpy`, `scikit-learn`, `statsmodels`, `prophet` 等（安装时会自动处理）\n\n> **提示**：国内开发者建议使用国内镜像源加速安装过程，例如阿里云或清华大学镜像源。\n\n## 安装步骤\n\n### 1. 升级 pip\n为了确保安装顺利，建议先升级 pip 工具：\n```bash\npip install --upgrade pip\n```\n\n### 2. 安装 Kats\n**方式一：完整安装（推荐）**\n安装包含所有功能依赖的完整版本：\n```bash\npip install kats -i https:\u002F\u002Fpypi.tuna.tsinghua.edu.cn\u002Fsimple\n```\n\n**方式二：最小化安装**\n如果您只需要部分功能且希望减少依赖包体积，可以安装最小版本（注意：这会禁用部分功能并在导入时产生警告）：\n```bash\nMINIMAL_KATS=1 pip install kats -i https:\u002F\u002Fpypi.tuna.tsinghua.edu.cn\u002Fsimple\n```\n\n## 基本使用\n\nKats 的核心操作通常遵循“数据加载 -> 转换为 TimeSeriesData 对象 -> 初始化模型\u002F检测器 -> 运行”的流程。以下是三个最核心的应用场景示例。\n\n### 1. 时间序列预测 (Forecasting)\n使用 Prophet 模型对航空乘客数据进行未来趋势预测。\n\n```python\nimport pandas as pd\n\nfrom kats.consts import TimeSeriesData\nfrom kats.models.prophet import ProphetModel, ProphetParams\n\n# 加载数据 (假设已有 air_passengers.csv)\nair_passengers_df = pd.read_csv(\n    \"air_passengers.csv\",\n    header=0,\n    names=[\"time\", \"passengers\"],\n)\n\n# 转换为 Kats 专用的 TimeSeriesData 对象\nair_passengers_ts = TimeSeriesData(air_passengers_df)\n\n# 创建模型参数实例 (乘法季节性模式通常效果更好)\nparams = ProphetParams(seasonality_mode='multiplicative')\n\n# 创建并初始化模型\nm = ProphetModel(air_passengers_ts, params)\n\n# 拟合模型\nm.fit()\n\n# 预测未来 30 个月的数据\nfcst = m.predict(steps=30, freq=\"MS\")\n\nprint(fcst.head())\n```\n\n### 2. 异常与变点检测 (Detection)\n使用 CUSUM 算法检测模拟数据中的趋势变化点。\n\n```python\nimport numpy as np\nimport pandas as pd\n\nfrom kats.consts import TimeSeriesData\nfrom kats.detectors.cusum_detection import CUSUMDetector\n\n# 模拟包含趋势增加的时间序列数据\nnp.random.seed(10)\ndf_increase = pd.DataFrame(\n    {\n        'time': pd.date_range('2019-01-01', '2019-03-01'),\n        'increase':np.concatenate([np.random.normal(1,0.2,30), np.random.normal(2,0.2,30)]),\n    }\n)\n\n# 转换为 TimeSeriesData 对象\ntimeseries = TimeSeriesData(df_increase)\n\n# 运行检测器并查找变点\nchange_points = CUSUMDetector(timeseries).detector()\n\nprint(change_points)\n```\n\n### 3. 特征提取 (TSFeatures)\n从时间序列数据中提取有意义的统计特征，用于后续的分析或机器学习任务。\n\n```python\nimport pandas as pd\nfrom kats.consts import TimeSeriesData\nfrom kats.tsfeatures.tsfeatures import TsFeatures\n\n# 加载数据\nair_passengers_df = pd.read_csv(\n    \"air_passengers.csv\",\n    header=0,\n    names=[\"time\", \"passengers\"],\n)\n\n# 转换为 TimeSeriesData 对象\nair_passengers_ts = TimeSeriesData(air_passengers_df)\n\n# 初始化特征提取类并计算特征\nfeatures = TsFeatures().transform(air_passengers_ts)\n\nprint(features)\n```\n\n更多高级用法和详细教程，请访问 [Kats 官方 GitHub Tutorials](https:\u002F\u002Fgithub.com\u002Ffacebookresearch\u002FKats\u002Ftree\u002Fmaster\u002Ftutorials)。","某电商平台的运维数据团队需要实时监控全球各区域站点的服务器流量，以便及时发现异常波动并预测未来的扩容需求。\n\n### 没有 Kats 时\n- 工程师需手动编写复杂的统计代码来计算均值、方差等基础指标，难以快速掌握海量时间序列数据的整体特征。\n- 面对突发的流量尖峰或缓慢的性能退化，缺乏统一的检测算法，往往依赖人工设定固定阈值，导致漏报频繁或误报过多。\n- 进行未来趋势预测时，需要分别研究并集成多种独立的预测库，模型调参过程繁琐且难以标准化。\n- 不同业务线的数据分析流程割裂，每次新场景接入都要重复造轮子，开发效率低下且维护成本高昂。\n\n### 使用 Kats 后\n- 利用 Kats 内置的特征提取模块，一键生成包含季节性、趋势性等关键统计量的特征向量，瞬间完成数据画像。\n- 部署 CUSUM 或 Prophet 等内置检测器，自动识别流量中的突变点和异常模式，无需人工干预即可精准捕捉潜在故障。\n- 通过统一的建模接口调用 Prophet 等算法，轻松实现未来 30 天的流量预测，为资源扩容提供可靠的数据支撑。\n- 依托其轻量级且可扩展的框架，团队将检测、预测和特征工程整合进同一套流水线，大幅缩短了从数据到洞察的周期。\n\nKats 将分散的时间序列分析能力整合为一站式解决方案，让数据团队能专注于业务决策而非底层算法实现。","https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Ffacebookresearch_Kats_5a92b042.png","facebookresearch","Meta Research","https:\u002F\u002Foss.gittoolsai.com\u002Favatars\u002Ffacebookresearch_449342bd.png","",null,"https:\u002F\u002Fopensource.fb.com","https:\u002F\u002Fgithub.com\u002Ffacebookresearch",[80,84,88,92,95,99],{"name":81,"color":82,"percentage":83},"Python","#3572A5",59.1,{"name":85,"color":86,"percentage":87},"Jupyter Notebook","#DA5B0B",40.6,{"name":89,"color":90,"percentage":91},"HTML","#e34c26",0.1,{"name":93,"color":94,"percentage":91},"Batchfile","#C1F12E",{"name":96,"color":97,"percentage":98},"Makefile","#427819",0,{"name":100,"color":101,"percentage":98},"CSS","#663399",6294,621,"2026-04-07T06:51:15","MIT",1,"未说明",{"notes":109,"python":107,"dependencies":110},"可通过 pip 安装。若仅需部分功能，可设置环境变量 MINIMAL_KATS=1 进行最小化安装，但这会禁用许多功能并产生警告。该工具包包含预测、检测、特征提取等功能，部分高级功能（如全局模型）可能依赖额外的深度学习库，但 README 未列出具体的版本约束。",[111,112],"pandas","numpy",[14,16],"2026-03-27T02:49:30.150509","2026-04-07T22:50:54.378849",[117,122,127,132,137,142,147],{"id":118,"question_zh":119,"answer_zh":120,"source_url":121},22950,"安装 Kats 0.2.0 版本时被 pystan 依赖阻塞怎么办？","该错误主要源于 pystan-2.19.1.1 的安装失败。这通常是底层编译环境问题，而非 Kats 本身的问题。建议前往 pystan 官方项目页面寻求针对您操作系统的特定安装指导，或者考虑使用 Docker 容器来规避本地环境配置问题。","https:\u002F\u002Fgithub.com\u002Ffacebookresearch\u002FKats\u002Fissues\u002F270",{"id":123,"question_zh":124,"answer_zh":125,"source_url":126},22951,"Windows 用户如何安装 Kats 的轻量版（Minimal Install）以避免安装 Prophet 等重型库？","Kats 支持轻量级安装以排除 Prophet 等重型依赖，但在 Windows 上通过 pip 直接启用该选项较为复杂。目前官方正在跟进 Windows 上的轻量安装支持。临时方案是参考 setup.py 中的 MINIMAL 选项配置，或在 Linux\u002FWSL2 环境下进行轻量安装。如果只需使用检测器（detectors）功能，请密切关注官方后续对 Windows 轻量安装的修复。","https:\u002F\u002Fgithub.com\u002Ffacebookresearch\u002FKats\u002Fissues\u002F115",{"id":128,"question_zh":129,"answer_zh":130,"source_url":131},22947,"如何在 Windows 10 上成功安装 Kats？","在 Windows 上直接通过 pip 安装可能会遇到依赖问题。推荐的解决步骤如下：\n1. 创建并激活 conda 环境：\n   conda create -n katsenv python=3.7\n   conda activate katsenv\n2. 先安装 fbprophet：\n   conda install -c conda-forge fbprophet\n3. 安装 Kats：\n   pip install kats\n4. 如果遇到问题，尝试将 packaging 库降级到 21.3 版本。\n5. 若出现 holidays 库的初始化错误，需手动修改 site-packages\\holidays\\registry.py 第 178 行，将 super().__init__(*args, **kwargs) 改为 super().__init__()。","https:\u002F\u002Fgithub.com\u002Ffacebookresearch\u002FKats\u002Fissues\u002F137",{"id":133,"question_zh":134,"answer_zh":135,"source_url":136},22948,"导入 Kats 模块时出现循环导入错误（ImportError: cannot import name 'utils'）怎么办？","该错误通常由安装源或环境冲突引起。建议尝试使用国内镜像源重新安装 Kats，命令如下：\npip install kats -i https:\u002F\u002Fmirrors.aliyun.com\u002Fpypi\u002Fsimple\u002F\n如果问题依旧，请确保没有名为 'kats.py' 的文件与库名称冲突，并检查是否从源代码正确安装。","https:\u002F\u002Fgithub.com\u002Ffacebookresearch\u002FKats\u002Fissues\u002F108",{"id":138,"question_zh":139,"answer_zh":140,"source_url":141},22949,"安装 Kats 时出现 'Failed building wheel for numpy' 错误如何解决？","此错误通常是因为 Python 版本过新导致 numpy 无法编译。目前的解决方案是使用 Python 3.7 版本进行安装。如果您使用的是较新的 Python 版本（如 3.10+），建议创建一个 Python 3.7 的虚拟环境后再尝试安装 Kats 及其依赖。","https:\u002F\u002Fgithub.com\u002Ffacebookresearch\u002FKats\u002Fissues\u002F325",{"id":143,"question_zh":144,"answer_zh":145,"source_url":146},22952,"在 Windows 上安装 Kats 时构建 fbprophet wheel 失败如何处理？","这是 Windows 上常见的兼容性问题，通常与 pystan 和 scipy 的编译有关。解决方法包括：\n1. 确保使用 Python 3.7 版本。\n2. 按照 pystan 官方文档安装 MinGW-w64 编译器，但需注意 MSVC 编译器可能不被支持。\n3. 尝试完全使用 conda 进行安装（包括编译器工具链）。\n4. 如果仍无法解决，可以考虑升级到 Kats 0.2.0 或更高版本，旧版本的安装问题在新版中可能已得到缓解。","https:\u002F\u002Fgithub.com\u002Ffacebookresearch\u002FKats\u002Fissues\u002F71",{"id":148,"question_zh":149,"answer_zh":150,"source_url":151},22953,"在没有 WSL2 的受限企业环境中，如何在 Windows 上安装 Kats？","由于 Kats 依赖 fbprophet，而 fbprophet 在 Windows 上通常需要 pystan，后者在无 WSL2 且受限的企业环境中难以编译。建议方案：\n1. 尝试使用预编译的二进制包（如果可用）。\n2. 联系 IT 部门申请 WSL2 权限。\n3. 使用 Docker 容器运行 Kats，以绕过本地操作系统限制。\n4. 关注官方是否发布纯 Python 实现的替代方案或移除对 pystan 的强依赖。","https:\u002F\u002Fgithub.com\u002Ffacebookresearch\u002FKats\u002Fissues\u002F49",[153,158],{"id":154,"version":155,"summary_zh":156,"released_at":157},136728,"v0.2.0","这是我们自2021年6月以来的第二个主要版本。\n详细变更请参见：https:\u002F\u002Fgithub.com\u002Ffacebookresearch\u002Fkats#version-020","2022-03-15T16:06:25",{"id":159,"version":160,"summary_zh":161,"released_at":162},136729,"v0.1","这是我们Kats Python包的初始版本。","2021-06-17T20:16:57"]