AnomalyDetectionCatalog.ChangeModelThreshold<TModel> 方法

定义

使用指定的 AnomalyPredictionTransformer<TModel> 创建一个新的 threshold。 如果提供的threshold阈值与它只返回modelmodel阈值相同。 请注意,默认情况下阈值为 0.5,有效分数范围为 0 到 1。

public Microsoft.ML.Data.AnomalyPredictionTransformer<TModel> ChangeModelThreshold<TModel> (Microsoft.ML.Data.AnomalyPredictionTransformer<TModel> model, float threshold) where TModel : class;
member this.ChangeModelThreshold : Microsoft.ML.Data.AnomalyPredictionTransformer<'Model (requires 'Model : null)> * single -> Microsoft.ML.Data.AnomalyPredictionTransformer<'Model (requires 'Model : null)> (requires 'Model : null)
Public Function ChangeModelThreshold(Of TModel As Class) (model As AnomalyPredictionTransformer(Of TModel), threshold As Single) As AnomalyPredictionTransformer(Of TModel)

类型参数

TModel

参数

threshold
Single

将用于根据模型预测分数确定数据点标签的新阈值。

返回

适用于