BinaryClassificationCatalog.ChangeModelThreshold<TModel> 方法

定義

將臨界值修改為現有模型並傳回修改過的模型的方法。

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

類型參數

TModel

模型參數的類型。

參數

model
BinaryPredictionTransformer<TModel>

要修改閾值的現有模型。

threshold
Single

新的臨界值。

傳回

具有已修改閾值的新模型。

適用於