dotnet / machinelearning

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

[AnomalyDetection] Some points marked as anomaly with little deviation #5640

Open lisahua opened 3 years ago

lisahua commented 3 years ago

System information

Issue

Expecting the highlighted points with higher deviation to be anomalies.

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

Source code / logs

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

        anomalyResult = this.mlContext.AnomalyDetection.DetectEntireAnomalyBySrCnn(
  ...
        anomalyDetectorOptions);
michaelgsharp commented 3 years ago

@guinao can you take a look at this? It is probably related to #5630 as well.

michaelgsharp commented 3 years ago

Re-uploading csv file Sales Profit by Year, Quarter, Month and Day.csv