Skip to content

Commit 398a978

Browse files
SnakyBeakyEric Erhardt
authored and
Eric Erhardt
committed
Fix LogLossReduction (RIG) example values (#4098)
* Fix MulticlassClassificationMetrics.LogLossReduction example value * Fix CalibratedBinaryClassificationMetrics.LogLossReduction example value
1 parent 3b95283 commit 398a978

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Microsoft.ML.Data/Evaluators/Metrics/CalibratedBinaryClassificationMetrics.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public sealed class CalibratedBinaryClassificationMetrics : BinaryClassification
3131
/// The log-loss reduction is scaled relative to a classifier that predicts the prior for every example:
3232
/// (LL(prior) - LL(classifier)) / LL(prior)
3333
/// This metric can be interpreted as the advantage of the classifier over a random prediction.
34-
/// For example, if the RIG equals 20, it can be interpreted as "the probability of a correct prediction is
34+
/// For example, if the RIG equals 0.2, it can be interpreted as "the probability of a correct prediction is
3535
/// 20% better than random guessing."
3636
/// </remarks>
3737
public double LogLossReduction { get; }
@@ -50,4 +50,4 @@ internal CalibratedBinaryClassificationMetrics(IHost host, DataViewRow overallRe
5050
Entropy = Fetch(BinaryClassifierEvaluator.Entropy);
5151
}
5252
}
53-
}
53+
}

src/Microsoft.ML.Data/Evaluators/Metrics/MulticlassClassificationMetrics.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public sealed class MulticlassClassificationMetrics
3333
/// The log-loss reduction is scaled relative to a classifier that predicts the prior for every example:
3434
/// (LL(prior) - LL(classifier)) / LL(prior)
3535
/// This metric can be interpreted as the advantage of the classifier over a random prediction.
36-
/// For example, if the RIG equals 20, it can be interpreted as "the probability of a correct prediction is
36+
/// For example, if the RIG equals 0.2, it can be interpreted as "the probability of a correct prediction is
3737
/// 20% better than random guessing".
3838
/// </remarks>
3939
public double LogLossReduction { get; private set; }
@@ -121,4 +121,4 @@ internal MulticlassClassificationMetrics(double accuracyMicro, double accuracyMa
121121
PerClassLogLoss = perClassLogLoss.ToImmutableArray();
122122
}
123123
}
124-
}
124+
}

0 commit comments

Comments
 (0)