
Eine Python-Bibliothek zur Anomalieerkennung in tabellarischen Daten, Zeitreihen, Graphen, Text, Bildern und Audiodaten. 60+ Detektoren, benchmark-gestützte ADEngine-Orchestrierung und ein agentischer Workflow für KI-Agenten.
.. image:: https://raw.githubusercontent.com/yzhao062/pyod/master/brand/pyod-icon.svg :target: https://pyod.dev :alt: PyOD-Ökosystem :width: 84px
PyOD 3: Agentische Anomalieerkennung im großen Maßstab
|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:: https://img.shields.io/badge/website-pyod.dev-990000 :target: https://pyod.dev :alt: Website
.. |badge_pypi| image:: https://img.shields.io/pypi/v/pyod.svg?color=brightgreen :target: https://pypi.org/project/pyod/ :alt: PyPI-Version
.. |badge_anaconda| image:: https://anaconda.org/conda-forge/pyod/badges/version.svg :target: https://anaconda.org/conda-forge/pyod :alt: Anaconda-Version
.. |badge_docs| image:: https://readthedocs.org/projects/pyod/badge/?version=latest :target: https://pyod.readthedocs.io/en/latest/?badge=latest :alt: Dokumentationsstatus
.. |badge_stars| image:: https://img.shields.io/github/stars/yzhao062/pyod.svg :target: https://github.com/yzhao062/pyod/stargazers :alt: GitHub-Sterne
.. |badge_forks| image:: https://img.shields.io/github/forks/yzhao062/pyod.svg?color=blue :target: https://github.com/yzhao062/pyod/network :alt: GitHub-Forks
.. |badge_downloads| image:: https://pepy.tech/badge/pyod :target: https://pepy.tech/project/pyod :alt: Downloads
.. |badge_testing| image:: https://github.com/yzhao062/pyod/actions/workflows/testing.yml/badge.svg :target: https://github.com/yzhao062/pyod/actions/workflows/testing.yml :alt: Tests
.. |badge_coverage| image:: https://coveralls.io/repos/github/yzhao062/pyod/badge.svg :target: https://coveralls.io/github/yzhao062/pyod :alt: Abdeckungsstatus
.. |badge_maintainability| image:: https://api.codeclimate.com/v1/badges/bdc3d8d0454274c753c4/maintainability :target: https://codeclimate.com/github/yzhao062/Pyod/maintainability :alt: Wartbarkeit
.. |badge_license| image:: https://img.shields.io/github/license/yzhao062/pyod.svg :target: https://github.com/yzhao062/pyod/blob/master/LICENSE :alt: Lizenz
.. |badge_benchmark| image:: https://img.shields.io/badge/ADBench-benchmark_results-pink :target: https://github.com/Minqi824/ADBench :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 ist die umfassendste Python-Bibliothek für Anomalieerkennung. Vier Säulen:
=========================== ========================================================================================
Säule Bedeutung
=========================== ========================================================================================
Multi-Modal 61 Detektoren über tabellarische, Zeitreihen-, Graph-, Text-, Bild- und Audiodaten, eine API
Vollständiger Lebenszyklus Von Rohdaten zu erklärten Anomalien und Hinweisen zu nächsten Schritten in einem einzigen Aufruf
Agentisch od-expert verwandelt natürlichsprachliche Anfragen in ADEngine-Workflows; MCP stellt strukturierte Werkzeuge für andere Agenten bereit
Meistgenutzt 65+ Millionen Downloads; benchmark-gestütztes Routing (ADBench, TSB-AD, BOND, NLP-ADBench)
=========================== ========================================================================================
Kernteam ^^^^^^^^^
.. image:: https://raw.githubusercontent.com/yzhao062/pyod/master/brand/team/core-team.png :width: 900px :alt: PyOD-Kernteam: Yue Zhao, Xiyang Hu, Zain Nasrullah und Winston (Zheng) Li. Top-Mitwirkende nach Commits: Yahya Almardeny, Akira Tamamori, Daniel Kulik, Michiel Bongaerts, Zhuo Xiao, Sihan Chen, Roel Bouman, Yuehan Qin, Adam Goodge und Tiankai Yang.
Yue Zhao <https://viterbi-web.usc.edu/~yzhao010/>__ (University of Southern California) gründete PyOD im Jahr 2017 und leitet es gemeinsam mit Xiyang Hu <https://xiyanghu.github.io/>__ (Arizona State University), Mitautor von ECOD, COPOD, SUOD und ADBench. Zain Nasrullah und Winston (Zheng) Li waren Mitautoren von PyOD 1 (JMLR 2019). Die Top-Mitwirkenden sind nach Commits gereiht, und die About page <https://pyod.readthedocs.io/en/latest/about.html>__ listet das vollständige Kernteam auf.
Installation ^^^^^^^^^^^^
Kernbibliothek (erforderlich für jeden Aktivierungspfad):
.. code-block:: bash
pip install pyod
Wählen Sie dann den Aktivierungspfad, der zu Ihrem Agent-Stack passt:
.. 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
Führen Sie pyod info jederzeit aus, um Version, Detektoranzahl und
den Installationsstatus jedes Aktivierungspfads anzuzeigen. pyod info erkennt außerdem,
welchen Agent-Stack Sie installiert haben (~/.claude/ für Claude Code,
~/.codex/ für Codex) und empfiehlt den passenden Installationsbefehl.
Für conda, Installation aus dem Quellcode, Details zu Abhängigkeiten und Fehlerbehebung
siehe die vollständige installation guide <https://pyod.readthedocs.io/en/latest/install.html>__.
Der veraltete Befehl pyod-install-skill aus v3.0.0 funktioniert weiterhin als
Alias für pyod install skill.
Ausreißererkennung mit 5 Codezeilen (pip install pyod):
.. code-block:: python
from pyod.models.iforest import IForest
clf = IForest()
clf.fit(X_train)
y_train_scores = clf.decision_scores_ # training anomaly scores
y_test_scores = clf.decision_function(X_test) # test anomaly scores
Drei Möglichkeiten, PyOD zu verwenden:

Python-Bibliothek für die Sicherheit von Adversarial Machine Learning, die es Red- und Blue-Teams ermöglicht, Evasion-, Poisoning-, Extraction- und Inference-Angriffe sowie Verteidigungen über gängige ML-Frameworks hinweg auszuführen.

Eine Adversarial-Examples-Bibliothek zum Erstellen von Angriffen, Entwickeln von Abwehrmaßnahmen und Benchmarking beider.

Eine Python-Toolbox zur Erstellung adversarialer Beispiele, die neuronale Netze in PyTorch, TensorFlow und JAX täuschen.