DetectIidSpike with confidence parameter of type int is obsolete
- Dominant language
- No language data
- Stars
- 4.8k
- Forks
- 6.1k
- Avg merge
- 15h 21m
- Merged PRs (30d)
- 370
Description
[Enter feedback here]
As of version 2.0.0 the following snippet shows warning CS0618.' 'TimeSeriesCatalog.DetectlidSpike(TransformsCatalog, string, string, int, int, AnomalySide)' is obsolete: 'This API method is deprecated, please use the overload with confidence parameter of type double.'.
`var iidSpikeEstimator = mlContext.Transforms.DetectIidSpike(outputColumnName: nameof(ProductSalesPrediction.Prediction), inputColumnName: nameof(ProductSalesData.numSales), confidence: 95, pvalueHistoryLength: docSize / 4);`
Fixed by adding the decimal suffix to confidence parameter
---
#### Document Details
⚠ *Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.*
* ID: 0953823a-7d2a-a323-5365-d9a349385552
* Version Independent ID: 54ec317c-cfb9-0c2c-ccc2-4b90a5746e99
* Content: [Tutorial: Detect anomalies in product sales - ML.NET](https://learn.microsoft.com/en-us/dotnet/machine-learning/tutorials/sales-anomaly-detection)
* Content Source: [docs/machine-learning/tutorials/sales-anomaly-detection.md](https://github.com/dotnet/docs/blob/main/docs/machine-learning/tutorials/sales-anomaly-detection.md)
* Product: **dotnet-ml**
* GitHub Login: @luisquintanilla
* Microsoft Alias: **luquinta**
Contributor guide
Assessment
This issue has not been assessed yet.