Pyod: A Python library for anomaly detection across tabular, time series, graph, text, image, and…
yzhao062/pyodA 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.
Evaluate and collect.
What the project says.
.. image:: :target: :alt: PyOD Ecosystem :width: 84px Python Outlier Detection (PyOD) 3 ================================== PyOD 3: Agentic Anomaly Detection At Scale badge website badge pypi badge anaconda badge docs badge stars badge forks badge downloads badge testing badge coverage badge maintainability badge license badge benchmark .. badge website image:: :target: :alt: Website .. badge pypi image:: :target: :alt: PyPI version .. badge anaconda image:: :target: :alt: Anaconda version .. badge docs image:: :target: :alt: Documentation status .. badge stars image:: :target: :alt: GitHub stars .. badge forks image:: :target: :alt: GitHub forks .. badge downloads image:: :target: :alt: Downloads .. badge testing image:: :target: :alt: Testing .. badge coverage image:: :target: :alt: Coverage Status .. badge maintainability image:: :target: :alt: Maintainability .. badge license image:: :target: :alt: License .. badge benchmark image:: results-pink :target: :alt: Benchmark ----- PyOD is agent-ready. Claude Code and Codex can use the od-expert skill to drive ADEngine investigations, while MCP-compatible agents can query PyOD's detector knowledge and planning tools. The classic fit / predict API stays unchanged. ----- PyOD 3 is the most comprehensive Python library for anomaly detection. Four pillars: =========================== ======================================================================================== Pillar What it means =========================== ======================================================================================== Multi-Modal 61 detectors across tabular, time series, graph, text, image, and audio data, one API Full Lifecycle From raw data to explained anomalies and next-step guidance in a single call Agentic od-expert turns natural-language requests into ADEngine workflows; MCP exposes structured tools for other agents Most Used 65+ million downloads; benchmark-backed routing (ADBench, TSB-AD, BOND, NLP-ADBench) =========================== ======================================================================================== Core Team ^^^^^^^^^ .. image:: :width: 900px :alt: PyOD core team: Yue Zhao, Xiyang Hu, Zain Nasrullah, and Winston (Zheng) Li. Top contributors by commits: Yahya Almardeny, Akira Tamamori, Daniel Kulik, Michiel Bongaerts, Zhuo Xiao, Sihan Chen, Roel Bouman, Yuehan Qin, Adam Goodge, and Tiankai Yang. Yue Zhao (University of Southern California) started PyOD in 2017 and leads it with Xiyang Hu (Arizona State University), co-author of ECOD, COPOD, SUOD, and ADBench. Zain Nasrullah and Winston (Zheng) Li co-authored PyOD 1 (JMLR 2019). The top contributors are ranked by commits, and the About page lists the full core development team. Install ^^^^^^^ Core library (required for every activation path): .. code-block:: bash pip install pyod Then pick the activation path that matches your agent stack: .. code-block:: bash # 1. Claude Code / Codex - enables the od-expert skill pyod install skill # Claude Code: user-global ( /.claude/skills/) pyod install skill --project # Codex: project-local (./skills/, Codex has no user-global dir) # 2. Any MCP-compatible LLM - requires the optional mcp extra pip install pyod[mcp] pyod mcp serve # alias for python -m pyod.mcp server # 3. Pure Python - no extra step # from pyod.utils.ad engine import ADEngine Run pyod info at any time to see version, detector counts, and the install state of each activation path. pyod info also detects which agent stack you have installed ( /.claude/ for Claude Code, /.codex/ for Codex) and recommends the right install command. For conda, source install, dependency details, and troubleshooting, see the full installation guide . The legacy pyod-install-skill command from v3.0.0 still works as an alias for pyod install skill . Outlier Detection with 5 Lines of Code ( pip install pyod ): .. code-block:: python from pyod.models.iforest import IForest clf = IForest() clf.fit(X train) y train scores = clf.decision ...
Continue the conversation.
Comments, one-level replies, owner highlights, and discussion notifications are included with ORYNT membership.
Sign in with GitHub