IidChangePointEstimator Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Detect a signal change on an independent identically distributed (i.i.d.) time series based on adaptive kernel density estimation and martingales.
public sealed class IidChangePointEstimator : Microsoft.ML.Data.TrivialEstimator<Microsoft.ML.Transforms.TimeSeries.IidChangePointDetector>
type IidChangePointEstimator = class
inherit TrivialEstimator<IidChangePointDetector>
Public NotInheritable Class IidChangePointEstimator
Inherits TrivialEstimator(Of IidChangePointDetector)
- Inheritance
To create this estimator, use DetectIidChangePoint.
There is only one input column. The input column must be Single where a Single value indicates a value at a timestamp in the time series.
It produces a column that is a vector with 4 elements. The output vector sequentially contains alert level (non-zero value means a change point), score, p-value, and martingale value.
Does this estimator need to look at the data to train its parameters? | No |
Input column data type | Single |
Output column data type | 4-element vector ofDouble |
Exportable to ONNX | No |
Machine learning task | Anomaly detection |
Is normalization required? | No |
Is caching required? | No |
Required NuGet in addition to Microsoft.ML | Microsoft.ML.TimeSeries |
This trainer assumes that data points collected in the time series are independently sampled from the same distribution (independent identically distributed).
Thus, the value at the current timestamp can be viewed as the value at the next timestamp in expectation.
If the observed value at timestamp
Once the raw score at a timestamp is computed, it is fed to the anomaly scorer component to calculate the final anomaly score at that timestamp. There are two statistics involved in this scorer, p-value and martingale score.
The p-value score indicates the p-value of the current computed raw score according to a distribution of raw scores.
Here, the distribution is estimated based on the most recent raw score values up to certain depth back in the history.
More specifically, this distribution is estimated using kernel density estimation
with the Gaussian kernels of adaptive bandwidth.
The p-value score is always in
The martingale score is an extra level of scoring that is built upon the p-value scores.
The idea is based on the Exchangeability Martingales that detect a change of distribution over a stream of i.i.d. values.
In short, the value of the martingale score starts increasing significantly when a sequence of small p-values detected in a row; this indicates the change of the distribution of the underlying data generation process.
Thus, the martingale score is used for change point detection.
Given a sequence of most recently observed p-values,
If the martingle score exceeds
Check the See Also section for links to usage examples.
Fit(IData |
(Inherited from TrivialEstimator<TTransformer>) |
Get |
Returns the SchemaShape of the schema which will be produced by the transformer. Used for schema propagation and verification in a pipeline. |
Append |
Append a 'caching checkpoint' to the estimator chain. This will ensure that the downstream estimators will be trained against cached data. It is helpful to have a caching checkpoint before trainers that take multiple data passes. |
With |
Given an estimator, return a wrapping object that will call a delegate once Fit(IDataView) is called. It is often important for an estimator to return information about what was fit, which is why the Fit(IDataView) method returns a specifically typed object, rather than just a general ITransformer. However, at the same time, IEstimator<TTransformer> are often formed into pipelines with many objects, so we may need to build a chain of estimators via EstimatorChain<TLastTransformer> where the estimator for which we want to get the transformer is buried somewhere in this chain. For that scenario, we can through this method attach a delegate that will be called once fit is called. |
Termék | Verziók |
---|---|
ML.NET | 1.2.0, 1.3.1, 1.4.0, 1.5.0, 1.6.0, 1.7.0, 2.0.0, 3.0.0, Preview, 4.0.0 |