Share via


AutoMLExperimentExtension.SetBinaryClassificationMetric Method

Definition

Set Microsoft.ML.AutoML.BinaryMetricManager as evaluation manager for AutoMLExperiment. This will make AutoMLExperiment uses metric as evaluation metric.

public static Microsoft.ML.AutoML.AutoMLExperiment SetBinaryClassificationMetric (this Microsoft.ML.AutoML.AutoMLExperiment experiment, Microsoft.ML.AutoML.BinaryClassificationMetric metric, string labelColumn = "label", string predictedColumn = "PredictedLabel");
static member SetBinaryClassificationMetric : Microsoft.ML.AutoML.AutoMLExperiment * Microsoft.ML.AutoML.BinaryClassificationMetric * string * string -> Microsoft.ML.AutoML.AutoMLExperiment
<Extension()>
Public Function SetBinaryClassificationMetric (experiment As AutoMLExperiment, metric As BinaryClassificationMetric, Optional labelColumn As String = "label", Optional predictedColumn As String = "PredictedLabel") As AutoMLExperiment

Parameters

metric
BinaryClassificationMetric

evaluation metric.

labelColumn
String

label column.

predictedColumn
String

predicted column.

Returns

AutoMLExperiment

Applies to