Skip to content

Commit

Permalink
add document for method ChnageModelThreshold (#4563)
Browse files Browse the repository at this point in the history
  • Loading branch information
frank-dong-ms-zz committed Dec 12, 2019
1 parent cd40a07 commit fa62c81
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Microsoft.ML.Data/TrainCatalog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,13 @@ public IReadOnlyList<CrossValidationResult<CalibratedBinaryClassificationMetrics
Evaluate(x.Scores, labelColumnName), x.Scores, x.Fold)).ToArray();
}

/// <summary>
/// Method to modify the threshold to existing model and return modified model.
/// </summary>
/// <typeparam name="TModel">The type of the model parameters.</typeparam>
/// <param name="model">Existing model to modify threshold.</param>
/// <param name="threshold">New threshold.</param>
/// <returns>New model with modified threashold.</returns>
public BinaryPredictionTransformer<TModel> ChangeModelThreshold<TModel>(BinaryPredictionTransformer<TModel> model, float threshold)
where TModel : class
{
Expand Down

0 comments on commit fa62c81

Please sign in to comment.