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:
-
AcceptanceThreshold 0.001 RarerProbability threshold to consider an example anomalous PerformanceGoal Automatic aspects of performance to optimize - Possible settings for PerformanceGoal include:
-
"Quality" maximize the quality of the detection "Speed" maximize speed of the detection Automatic automatic tradeoff between speed and quality - AnomalyDetectorFunction[…] can also be used with FindAnomalies to detect anomalous examples.
Examples
open allclose 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:
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:
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:
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