Share via


CalibratedBinaryClassificationMetrics.Entropy Property

Definition

Gets the test-set entropy, which is the prior log-loss based on the proportion of positive and negative instances in the test set. A classifier's LogLoss lower than the entropy indicates that a classifier does better than predicting the proportion of positive instances as the probability for each instance.

public double Entropy { get; }
member this.Entropy : double
Public ReadOnly Property Entropy As Double

Property Value

Remarks

$Entropy = -p log_2(p) - (1 - p) log_2(1 - p)$, where $p$ is the proportion of the positive class in the test set.

Applies to