represents a function generated by AnomalyDetection for detecting whether data is anomalous or not.
AnomalyDetectorFunction
represents a function generated by AnomalyDetection for detecting whether data is anomalous or not.
Details and Options
- AnomalyDetectorFunction works like Function .
- AnomalyDetectorFunction […][data] returns True if it considers data to be anomalous, and False otherwise.
- AnomalyDetectorFunction […][{data1,data2,…}] tests all the datai.
- AnomalyDetectorFunction […][data,prop] gives the specified property of the anomaly detection associated with data.
- Possible properties include:
-
"Decision" whether the data is anomalous or not (default)"RarerProbability" probability to generate a sample with lower PDF than data
- The following options can be given:
-
- Possible settings for PerformanceGoal include:
-
"Quality" maximize the quality of the detection"Speed" maximize speed of the detectionAutomatic automatic tradeoff between speed and quality
- AnomalyDetectorFunction […] can also be used with FindAnomalies to detect anomalous examples.
Examples
open all close allBasic Examples (2)
Train a detector function on a numeric dataset:
Use the trained detector to find examples that are considered anomalous:
Find rarer probabilities of new examples:
Train an AnomalyDetectorFunction on a two-dimensional array of pseudorandom real numbers:
Use the trained AnomalyDetectorFunction to find anomalies in new examples with FindAnomalies :
Find anomalies and their corresponding positions:
Scope (1)
Train an AnomalyDetectorFunction on a list of colors:
Attempt to find outliers in a list of colors using the trained anomaly detector:
Obtain information on the trained anomaly detector:
Obtain information on training time:
Find the training method:
Options (1)
AcceptanceThreshold (1)
Create a dataset sampled from two different distributions:
Train an anomaly detector function:
Find anomalous/non-anomalous examples by specifying the AcceptanceThreshold :
Related Guides
History
Text
Wolfram Research (2019), AnomalyDetectorFunction, Wolfram Language function, https://reference.wolfram.com/language/ref/AnomalyDetectorFunction.html.
CMS
Wolfram Language. 2019. "AnomalyDetectorFunction." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/AnomalyDetectorFunction.html.
APA
Wolfram Language. (2019). AnomalyDetectorFunction. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AnomalyDetectorFunction.html
BibTeX
@misc{reference.wolfram_2025_anomalydetectorfunction, author="Wolfram Research", title="{AnomalyDetectorFunction}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/AnomalyDetectorFunction.html}", note=[Accessed: 24-November-2025]}
BibLaTeX
@online{reference.wolfram_2025_anomalydetectorfunction, organization={Wolfram Research}, title={AnomalyDetectorFunction}, year={2019}, url={https://reference.wolfram.com/language/ref/AnomalyDetectorFunction.html}, note=[Accessed: 24-November-2025]}