dotnet / machinelearning

ML.NET is an open source and cross-platform machine learning framework for .NET.
https://dot.net/ml
MIT License
8.99k stars 1.88k forks source link

[AnomalyDetection] ExpectedRange higher than expected? #5630

Open lisahua opened 3 years ago

lisahua commented 3 years ago

System information

Issue

Please assign the issue to: https://github.com/guinao and https://github.com/mengaims

Source code / logs

            var anomalyDetectorOptions = new SrCnnEntireAnomalyDetectorOptions()
            {
                DetectMode = //WithMargin,
                Sensitivity = 84,
                DeseasonalityMode = SrCnnDeseasonalityMode.Median,
                Period = -1,
                Threshold =0.12,
            };

            anomalyResult = this.mlContext.AnomalyDetection.DetectEntireAnomalyBySrCnn(
...
            anomalyDetectorOptions);

Input data: Value,Date 39800,2020-01-01 00:00:00 35000,2020-02-01 00:00:00 35600,2020-03-01 00:00:00 31700,2020-04-01 00:00:00 34900,2020-05-01 00:00:00 35200,2020-06-01 00:00:00 38900,2020-07-01 00:00:00 63981,2020-08-01 00:00:00 42000,2020-09-01 00:00:00 39400,2020-10-01 00:00:00 33700,2020-11-01 00:00:00 37800,2020-12-01 00:00:00 34200,2021-01-01 00:00:00

michaelgsharp commented 3 years ago

@guinao can you take a look at this?