AnomalyDetectionCatalog.ChangeModelThreshold<TModel> 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使用指定的 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
将用于根据模型预测分数确定数据点标签的新阈值。