yzhao062/pyod

A Python library for anomaly detection across tabular, time series, graph, text, image, and audio data. 60+ detectors, benchmark-backed ADEngine orchestration, and an agentic workflow for AI agents.

What it solves

PyOD 是一個全面的 Python 函式庫,旨在偵測資料集中的離群值與異常。它提供統一的 API,涵蓋各式偵測演算法,讓使用者能輕鬆切換不同方法,以找出最適合其特定資料的方案。

How it works

PyOD 提供三層使用方式:

  1. Classic API:標準的 fit/predict 介面,適合已知想使用哪個偵測器的使用者。
  2. ADEngine:自動化的編排核心,會為使用者自動選擇、比較與評估偵測器。
  3. Agentic Investigation:AI 驅動的層級,將自然語言請求透過 od-expert 技能(用於 Claude Code/Codex)或其他相容 LLM 代理的 MCP 伺服器轉換為工作流程。

Who it’s for

此函式庫適用於資料科學家、研究人員與 AI 工程師,需在多種資料模態(包括表格、時間序列、圖形、文字、影像與音訊)上執行異常偵測。

Highlights

  • Multi-Modal Support:包含 61 種偵測器,支援表格、時間序列、圖形、文字、影像與音訊資料。
  • Agentic Workflows:透過 MCP 與 od-expert 技能整合 LLM 代理,讓調查可透過對話驅動。
  • Scale and Adoption:下載次數超過 4600 萬次,已被 Walmart、歐洲太空總署等組織使用。
  • Comprehensive Benchmarking:以 ADBench、TSB-AD、BOND 等基準測試作為支撐。
  • High Performance:基於 SUOD 進行平行訓練,並使用 numba JIT 加速。