mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
Update compute_perplexity.py
This commit is contained in:
parent
fab0258df5
commit
584a956bf4
@ -330,7 +330,7 @@ def main():
|
|||||||
ppl = math.exp(tot_loss / num_tokens)
|
ppl = math.exp(tot_loss / num_tokens)
|
||||||
logging.info(
|
logging.info(
|
||||||
f"total nll: {tot_loss}, num tokens: {num_tokens}, "
|
f"total nll: {tot_loss}, num tokens: {num_tokens}, "
|
||||||
f"num sentences: {num_sentences}, ppl: {ppl:.3f}, "
|
f"num sentences: {num_sentences}, ppl: {ppl:.3f}"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user