AnomalyDetectionCatalog.ChangeModelThreshold<TModel> 方法

定義

使用指定的 AnomalyPredictionTransformer<TModel> 建立新 threshold。 如果提供的 threshold 與臨界值相同 model ,它只會傳 model 回 。 請注意,閾值預設為 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

新的閾值,用來根據模型的預測分數來判斷資料點的標籤。

傳回

適用於