Skip to content

Commit

Permalink
Update recurrent-language-model.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholas-leonard committed Dec 7, 2016
1 parent ccaf7af commit 8893d08
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions examples/recurrent-language-model.lua
Expand Up @@ -257,9 +257,7 @@ while opt.maxepoch <= 0 or epoch <= opt.maxepoch do
end

local ppl = torch.exp(sumErr/opt.validsize)
-- Note :
-- Perplexity = exp( sum ( NLL ) / #w)
-- Bits Per Word = log2(Perplexity)
print("Validation PPL : "..ppl)

xplog.valppl[epoch] = ppl
Expand Down

0 comments on commit 8893d08

Please sign in to comment.