dotnet / machinelearning-samples

Samples for ML.NET, an open source and cross-platform machine learning framework for .NET.
https://dot.net/ml
MIT License
4.47k stars 2.68k forks source link

Sample AnomalyDetection_PhoneCalls Project does not trigger anomalies with v3.0.1 #1019

Closed mjanulaitis closed 7 months ago

mjanulaitis commented 7 months ago

System Information:

OS & Version: Windows 10 ML.NET Version: ML.NET v3.0.1 .NET Version: .NET 7.0 Describe the bug I have successfully downloaded Microsoft's sample projects and run the AnomalyDetection_PhoneCalls sample with one change. That is, I upgraded from .Net Core 3.1 to .Net 7. Then after learning 3.x was released, I upgraded to the latest NuGet Package. Now when I run the sample it successfully runs however no anomalies are detected.

To Reproduce Steps to reproduce the behavior:

Download the samples from here: https://github.com/dotnet/machinelearning-samples/ Open the AnomalyDetection_PhoneCalls sample. Modify the project file to use net7.0 Run. Verify several items are flagged as anomalies. Using NuGet Package Manager upgrade Microsoft.ML and Microsoft.ML.TimeSeries to v3.0.1 Run. Notice the same items are no longer flagged as anomalies. Expected behavior The same items should be flagged as anomalies.

mjanulaitis commented 7 months ago

Modifying the threshold and precision resolved the issue.