Update metrics.py

Added the formula/definition of Relative cross entropy
This commit is contained in:
Shreyansh Pathak 2023-04-01 18:30:00 +05:30 committed by GitHub
parent ec83d01dca
commit 39336c46a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -263,7 +263,7 @@ def rce(labels, predictions,
y = label; p = prediction;
binary cross entropy = y * log(p) + (1-y) * log(1-p)
relative cross entropy = E[log(p)/log(q)]
Args:
labels:
the ground true value.