# Could I directly obtain the traning and testing plots with the CNN

**URL:** <https://root-forum.cern.ch/t/could-i-directly-obtain-the-traning-and-testing-plots-with-the-cnn/46281>\
**Category:** TMVA\
**Created:** [August 12, 2021, 3:49am UTC](https://root-forum.cern.ch/t/could-i-directly-obtain-the-traning-and-testing-plots-with-the-cnn/46281 "2021-08-12T03:49:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![melodynk](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/ba9def/32.png) [@melodynk](https://root-forum.cern.ch/u/melodynk)\
**Post date:** [August 12, 2021, 3:49am UTC](https://root-forum.cern.ch/t/could-i-directly-obtain-the-traning-and-testing-plots-with-the-cnn/46281/1 "2021-08-12T03:49:11Z")

</div>

Hi all  
Recently I attempt to use the CNN module（TMVA\_CNN\_Classification.C） to try some image classification missions.I wonder that if the TMVA package could directly output some specific training and testing process plots in GUI pad.Such as the plots regarding errors rate versus epoch number，the accuracy rate versus epoch number. Thanks so much!

---

<div class="post-metadata">

**Author:** ![moneta](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/moneta/32/19423_2.png) [@moneta](https://root-forum.cern.ch/u/moneta)\
**Post date:** [August 16, 2021, 9:40am UTC](https://root-forum.cern.ch/t/could-i-directly-obtain-the-traning-and-testing-plots-with-the-cnn/46281/2 "2021-08-16T09:40:43Z")

</div>

Hi,

Yes, TMVA creates some training history plots showing the training and validation error vs epoch numbers. These are histograms that are saved in the output files and they can be visualised with the GUI ( button `(8) Training History` ).  
You can also take the histograms yourself form the file, see as example the code:

> <https://github.com/root-project/root/blob/master/tmva/tmvagui/src/training_history.cxx>

Best regards

Lorenzo
