We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Compute the Perplexity
Compute the Perplexity
Sort by
recency
|
12 Discussions
|
Please Login in order to post a comment
DO NOT USE INPUT. I literally use input() and it failed. just set CE = 9.91. F*** THIS F****** Stupid webapp
This problem is similar to "Cross Entropy Calculation". But for some reason it has an Medium level. Although they are both easier than easy. No one monitors the quality of problems, right?
Useful resource
** Perplexity and cross-entropy for n-gram models**
https://stats.stackexchange.com/questions/285798/perplexity-and-cross-entropy-for-n-gram-models
m = 9.91 print(int(2**m))
Useful resource
** Perplexity and cross-entropy for n-gram models**
https://stats.stackexchange.com/questions/285798/perplexity-and-cross-entropy-for-n-gram-models
Assuming that your using a natural logarithm to compute the cross-entropy, you would actually use e^cross-entropy. This is far more common in my experience.