I have a couple of problems trying to understand the exact formula for cross entropy loss. Depending on the source I see it written different ways.
- Is the log() function $\log_2()$?
- Is the argument in the log: $q$ or $1/q$?
I am fairly certain it is $\log_2$ and $1/q$ but the variants worry me.
Why am I seeing it different ways? Could someone not only confirm my understanding but also suggest why there are so many variants out there?
With regard to the second question, $\log(p) = -\log(1/p)$. So, I would check for a minus sign in the variants.
– baruuum Dec 07 '18 at 05:23