Skip to content
KitploitKITPLOIT
工具漏洞利用博客
Log in
提交
工具漏洞利用博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

订阅源联系隐私© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
alibi-detect — 用于异常值、对抗性和漂移检测的算法 | Kitploit
工具/GitHubGitHub/seldonio/alibi-detect
机器学习AI 安全异常检测对抗性攻击对抗性攻击 分类第 19 名异常检测 分类第 8 名机器学习 分类第 12 名
GitHubseldonio/alibi-detect

alibi-detect

用于异常值、对抗性和漂移检测的算法

2.6k2528111个月前Kitploit 审核通过
分享
查看仓库网站

Alibi Detect 标志

Build Status Documentation Status codecov PyPI - Python Version PyPI - Package Version Conda (channel only) GitHub - License Slack channel


Alibi Detect 是一个源码可用的 Python 库,专注于异常值、对抗性和漂移检测。该包旨在覆盖适用于表格数据、文本、图像和时间序列的在线和离线检测器。漂移检测同时支持 TensorFlow 和 PyTorch 后端。

  • 文档

如需了解更多有关在生产环境中监测异常值和分布的重要性的背景信息,请查看来自 ICML 2020 研讨会 机器学习系统的部署与监测挑战 上的这个演讲,该演讲基于论文生产环境中模型的监测与可解释性并引用了 Alibi Detect。

如需全面了解漂移检测,请观看保护你的机器学习免受漂移影响:入门。该演讲涵盖了漂移是什么以及为什么值得检测、漂移的不同类型、如何以系统的方式检测漂移,并剖析了漂移检测器的内部构造。

目录

  • 安装与使用
    • 通过 pip
    • 通过 conda
    • 用法
  • 支持的算法
    • 异常检测
    • 对抗性检测
    • 漂移检测
      • TensorFlow 和 PyTorch 支持
      • 内置预处理步骤
    • 参考列表
      • 异常检测
      • 对抗性检测
      • 漂移检测
  • 数据集
    • 序列数据和时间序列
    • 图像
    • 表格数据
  • 模型
  • 集成
  • 引用

安装与使用

该包 alibi-detect 可以从以下位置安装:

  • PyPI 或 GitHub 源码(使用 pip)
  • Anaconda(使用 conda/mamba)

通过 pip

  • alibi-detect 可以从 PyPI 安装: ```bash pip install alibi-detect
  • 或者,可以安装开发版本: ```bash pip install git+https://github.com/SeldonIO/alibi-detect.git
  • 要使用 TensorFlow 后端安装: ```bash pip install alibi-detect[tensorflow]
  • 要使用 PyTorch 后端安装: ```bash pip install alibi-detect[torch]
  • 使用 KeOps 后端安装: ```bash pip install alibi-detect[keops]
  • 要使用 Prophet 时间序列异常值检测器: ```bash pip install alibi-detect[prophet]

使用 conda

要从 conda-forge 安装,建议使用 mamba, 可以通过以下命令将其安装到 base conda 环境中:```bash conda install mamba -n base -c conda-forge

要安装 alibi-detect:```bash
mamba install -c conda-forge alibi-detect

用法

我们将使用 VAE 异常检测器 来说明该 API。```python from alibi_detect.od import OutlierVAE from alibi_detect.saving import save_detector, load_detector

initialize and fit detector

od = OutlierVAE(threshold=0.1, encoder_net=encoder_net, decoder_net=decoder_net, latent_dim=1024) od.fit(x_train)

make predictions

preds = od.predict(x_test)

save and load detectors

filepath = './my_detector/' save_detector(od, filepath) od = load_detector(filepath)

预测结果以字典形式返回,键为 `meta` 和 `data`。`meta` 包含检测器的元数据,而 `data` 本身是一个包含实际预测结果的字典。其中包含异常、对抗或漂移的分数与阈值,以及诸如实例是否为异常值之类的预测。不同方法的具体细节可能略有差异,因此我们建议读者熟悉[支持的算法类型](https://docs.seldon.io/projects/alibi-detect/en/stable/overview/algorithms.html)。

## 支持的算法

下表展示了每种算法的建议使用场景。*特征级别* 列表示检测是否可以在特征级别上执行,例如对图像的逐像素检测。有关更多信息,请查阅[算法参考列表](#reference-list),其中包含文档和原始论文的链接以及各检测器的示例。

### 异常检测

| 检测器 | 表格数据 | 图像 | 时间序列 | 文本 | 类别特征 | 在线 | 特征级别 |
|:---------------------|:-------:|:-----:|:-----------:|:----:|:--------------------:|:------:|:-------------:|
| Isolation Forest     |    ✔    |       |             |      |          ✔           |        |               |
| Mahalanobis Distance |    ✔    |       |             |      |          ✔           |   ✔    |               |
| AE                   |    ✔    |   ✔   |             |      |                      |        |       ✔       |
| VAE                  |    ✔    |   ✔   |             |      |                      |        |       ✔       |
| AEGMM                |    ✔    |   ✔   |             |      |                      |        |               |
| VAEGMM               |    ✔    |   ✔   |             |      |                      |        |               |
| Likelihood Ratios    |    ✔    |   ✔   |      ✔      |      |          ✔           |        |       ✔       |
| Prophet              |         |       |      ✔      |      |                      |        |               |
| Spectral Residual    |         |       |      ✔      |      |                      |   ✔    |       ✔       |
| Seq2Seq              |         |       |      ✔      |      |                      |        |       ✔       |

### 对抗性检测

| 检测器 | 表格数据 | 图像 | 时间序列 | 文本 | 类别特征 | 在线 | 特征级别 |
| :---               |  :---:  | :---: |:-----------:|:----:|:--------------------:|:------:|:-------------:|
| Adversarial AE     | ✔       | ✔     |             |      |                      |        |               |
| Model distillation | ✔       | ✔     |      ✔      |  ✔   |          ✔           |        |               |

### 漂移检测
下载工具

最受欢迎

查看全部 →

发现我们社区最常用的工具。

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 终极 OSINT 工具包:调查图谱、置信度评分、别名家族、地图、时间线和报告。49 个模块、400+ 个站点,无需 API 密钥。

    786
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock 一键执行应用(CVE-2026-43499)

    506
  • 3

    ARTEX

    baarai/artex

    基于LLM的多智能体自主渗透测试平台,具备规划器/执行器智能体、资产与探索图谱、MITM流量记录以及漏洞复测功能。

    429
  • 4

    redforge

    cybersecurity91/redforge

    浏览器端红队工具包,包含 102 个离线工具,用于侦察、载荷生成、凭据攻击、加密、编码和交战报告。

    345
  • 5

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    AI原生网络安全的行动系统——在这里,意图转化为受治理的执行,证据沉淀为运营记忆,每一次操作都让下一次更出色。

    262
  • 6

    looking-glass

    anonghosty/looking-glass

    CSIRT 平台,可将 Shadowserver 报告导入 MongoDB,并将其重放为交互式地图、分析、发现、公告和高管仪表板。

    256

探索所有工具

浏览我们的工具集合

查看所有工具 →