CalibratedBinaryClassificationMetrics.Entropy Property
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.
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.