Share via


AnomalyDetectionCatalog.ChangeModelThreshold<TModel> Method

Definition

Creates a new AnomalyPredictionTransformer<TModel> with the specified threshold. If the provided threshold is the same as the model threshold it simply returns model. Note that by default the threshold is 0.5 and valid scores range from 0 to 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)

Type Parameters

TModel

Parameters

threshold
Single

The new threshold value that will be used to determine the label of a data point based on the predicted score by the model.

Returns

Applies to