# TMVA generated class does not compile, and unable to read xml file when using Keras interface

**URL:** <https://root-forum.cern.ch/t/tmva-generated-class-does-not-compile-and-unable-to-read-xml-file-when-using-keras-interface/28457>\
**Category:** TMVA\
**Created:** [March 27, 2018, 10:53am UTC](https://root-forum.cern.ch/t/tmva-generated-class-does-not-compile-and-unable-to-read-xml-file-when-using-keras-interface/28457 "2018-03-27T10:53:48Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![a.bragagnolo](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/f14d63/32.png) [@a.bragagnolo](https://root-forum.cern.ch/u/a.bragagnolo)\
**Post date:** [May 23, 2018, 3:07pm UTC](https://root-forum.cern.ch/t/tmva-generated-class-does-not-compile-and-unable-to-read-xml-file-when-using-keras-interface/28457/12 "2018-05-23T15:07:05Z")

</div>

@willemv  
Check my topic[1]

The class present a typo that prevents it to compile, sadly even fixing the typo does not allow to use the standalone class since the definitions of the functions  
`Initialize()`  
`GetMvaValue__(std::vector<double, std::allocator<double> > const&) const`  
`Clear()`  
are completely missing.

> [@Standalone C++ response classes for pyKeras does not work. Class presents a series of typos](https://root-forum.cern.ch/t/standalone-c-response-classes-for-pykeras-does-not-work-class-presents-a-series-of-typos/29110):
>
> Hi TMVA experts, I want to use TMVA as an interface for Keras. I have no problems in the training, but since my method needs to be deployed in a system where I do not control the root release (i.e. in a system with no tensorflow and keras available) I want to use the standalone c++ class option. The problem is that the above-mentioned class simply does not work. When I try to use it I get these error: /home/alberto/Desktop/training/dataset/weights/TMVAClassification\_DNN\_Barrel.class.C:291:34:…

---

_[View the full topic](https://root-forum.cern.ch/t/tmva-generated-class-does-not-compile-and-unable-to-read-xml-file-when-using-keras-interface/28457)._
