mirror of
https://github.com/twitter/the-algorithm.git
synced 2024-06-01 08:48:46 +02:00
Update metrics.py
Added the formula/definition of Relative cross entropy
This commit is contained in:
parent
ec83d01dca
commit
39336c46a0
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user