AnomalyDetector
是如 Classify 这样的函数的一个选项,为其指定一个异常检测器.
更多信息
- AnomalyDetector 的可能的设置包括:
-
None 不使用异常检测器(默认) AnomalyDetectorFunction[…] 使用指定的异常检测器 Automatic 根据可与数据创建异常检测器 LearnedDistribution[…] 根据学到的分布创建异常检测器 - 通常在模型运算期间使用指定的异常检测器,训练期间则不会使用.
- 如果碰到异常样例,返回 Missing["Anomalous"],而不是返回分类或预测结果.
- Classify[ClassifierFunction[…],AnomalyDetectordetector] 可用于改写特定分类器的异常检测器(对于 PredictorFunction[…] 也一样).
- Classify[ClassifierFunction[…],AcceptanceThresholdt] 可用于改写异常检测器使用的稀有概率阈值.
- ClassifierFunction[…][example,AnomalyDetectordetector] 可用于在模型运算期间临时改写异常检测器.
- ClassifierFunction[…][example,AcceptanceThresholdt] 可用于在模型运算期间临时改写稀有概率阈值.
范例
基本范例 (3)
c = Classify[{1 -> "A", 2 -> "A", 3.5 -> "B", 4 -> "B"}, AnomalyDetector -> Automatic]c[1.2]c[100000.2]c[100000.2, "Probabilities"]c2 = Classify[c, AnomalyDetector -> None]c2[10000.2]c = Classify[{1 -> "A", 2 -> "A", 3.5 -> "B", 4 -> "B"}]ad = AnomalyDetection[{1, 2, 3.5, 4}]c2 = Classify[c, AnomalyDetector -> ad]c2[10000.2]c2[6, AcceptanceThreshold -> 0.5]c2[6, AcceptanceThreshold -> 0.001]p = Predict[{1 -> 1.3, 2 -> 2.4, 3 -> 4.4, 4 -> 5.1, 6 -> 7.3}, AnomalyDetector -> Automatic]p[1.2]p[100000.2]p[100000.2, "Distribution"]p[6, AcceptanceThreshold -> 0.2]p[6, AcceptanceThreshold -> 0.001]p2 = Predict[p, AnomalyDetector -> None]p2[10000.2]相关指南
-
▪
- 监督机器学习
文本
Wolfram Research (2020),AnomalyDetector,Wolfram 语言函数,https://reference.wolfram.com/language/ref/AnomalyDetector.html.
CMS
Wolfram 语言. 2020. "AnomalyDetector." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/AnomalyDetector.html.
APA
Wolfram 语言. (2020). AnomalyDetector. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/AnomalyDetector.html 年
BibTeX
@misc{reference.wolfram_2026_anomalydetector, author="Wolfram Research", title="{AnomalyDetector}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/AnomalyDetector.html}", note=[Accessed: 12-August-2026]}
BibLaTeX
@online{reference.wolfram_2026_anomalydetector, organization={Wolfram Research}, title={AnomalyDetector}, year={2020}, url={https://reference.wolfram.com/language/ref/AnomalyDetector.html}, note=[Accessed: 12-August-2026]}