Questions regarding visualization

I was wondering if there is an easy way to get an array or dictionary of statistics that were gathered during training (like accuracy, perplexity, etc)? That way I could make plots with mathplotlib instead of relying on Tensorboard.

Also, are there any utility functions to plot the model or to visualize the attention?

I suggest

Thanks, but I was hoping to make these visualizations using existing utility functions of OpenNMT (without using third-party tools). @guillaumekln @jean.senellart, any suggestions?