AnomalyDetectionCatalog.ChangeModelThreshold<TModel> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
A trained AnomalyPredictionTransformer<TModel>.
- 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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for