Return the scalar mean categorical cross-entropy:
Z
(n, k)
y
(n,)
Input
Z = [[1. 2. 3.] [3. 1. 0.]] y = [2 0]
Output
0.2887259920003331
This one's part of Premium. Unlock the full NumPy track plus every other premium problem on the site.
solve(...)