Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

mx.metric.Perplexity should support calculating from cross-entropy #9590

Open
szha opened this issue Jan 27, 2018 · 0 comments
Open

mx.metric.Perplexity should support calculating from cross-entropy #9590

szha opened this issue Jan 27, 2018 · 0 comments

Comments

@szha
Copy link
Member

szha commented Jan 27, 2018

Currently part of the logic for calculating cross-entropy loss is in mx.metric.Perplexity. This means we would have repeated calculation when we are already using cross entropy loss, which is very commonly used (e.g SoftmaxCrossEntropyLoss). In that case, only exponentiating is needed.

https://github.com/apache/incubator-mxnet/blob/master/python/mxnet/metric.py#L648-L658

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant