CNTK icon indicating copy to clipboard operation
CNTK copied to clipboard

LogLoss function?

Open roger77 opened this issue 9 years ago • 4 comments

I am not able to find the LogLoss function, is it implemented?

roger77 avatar Mar 29 '17 01:03 roger77

You probably mean cross entropy?

https://github.com/Microsoft/CNTK/wiki/Loss-Functions-and-Metrics#crossentropy-crossentropywithsoftmax

DanielMerget avatar Mar 30 '17 12:03 DanielMerget

I think I mean binary_cross_entropy as in https://github.com/Microsoft/CNTK/search?q=binary_cross_entropy

but when I substitute this function instead of cross_entropy_with_softmax I get a function not found error.

roger77 avatar Mar 31 '17 22:03 roger77

From the commit log it seems this particular function was only added 29 days ago. You probably need to update to a newer version if you want to use it.

DanielMerget avatar Apr 01 '17 08:04 DanielMerget

Also don't forget that cross_entropy_with_softmax expects as inputs logits (i.e. unconstrained values) while binary_cross_entropy expects as input a probability (i.e. the output of a sigmoid)

Closing this as it's been a while. Feel free to reopen with questions.

n17s avatar Jul 13 '17 03:07 n17s