閱讀英文

共用方式為


BinaryClassificationCatalog.ChangeModelThreshold<TModel> 方法

定義

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

public Microsoft.ML.Data.BinaryPredictionTransformer<TModel> ChangeModelThreshold<TModel>(Microsoft.ML.Data.BinaryPredictionTransformer<TModel> model, float threshold) where TModel : class;

類型參數

TModel

模型參數的類型。

參數

model
BinaryPredictionTransformer<TModel>

要修改閾值的現有模型。

threshold
Single

新的臨界值。

傳回

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

適用於

產品 版本
ML.NET 1.0.0, 1.1.0, 1.2.0, 1.3.1, 1.4.0, 1.5.0, 1.6.0, 1.7.0, 2.0.0, 3.0.0, 4.0.0, Preview