Compute accuracies at each iteration based on true labels (if available)
fix perplexity