BinaryClassificationCatalog.ChangeModelThreshold<TModel> 方法
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將臨界值修改為現有模型並傳回修改過的模型的方法。
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
模型參數的類型。
要修改閾值的現有模型。
- 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 |