DetectSpike

Detects spike in numeric expression using ML.NET IidSpykeEstimator and specified confidence.

The result value is set by argument:

'Alert' - 0 or 1 (indicates a spike alert for a given data point)

'Score' - value for a given data point

'P-Value' - probability (the closer the p-value is to 0, the more likely the data point is an anomaly)

Syntax

DetectSpike(double numericExpression, double confidence, string spikeDetection)

Example

DetectSpike("oil production" in "m3", 95, "Alert") 

DetectSpike("oil production" in "m3", 97, "Score")

DetectSpike("oil production" in "m3", 99, "P-Value")