문제

For example, you can reorder a softmax + nl (negative likelihood) to log_softmax + nll (negative log-likelihood)

Essentially changing log(softmax(x)) to softmax(log(x))

However, what are the rules to reordering logging of things?

도움이 되었습니까?

해결책

In general, you cannot reorder like that. The example you give is a very special case that only works because softmax is based on the exponential function, which is the inverse function of the natural logarithm.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 datascience.stackexchange
scroll top