# Error in ClassificationKeras.py

**URL:** <https://root-forum.cern.ch/t/error-in-classificationkeras-py/59489>\
**Category:** TMVA\
**Created:** [May 28, 2024, 9:04am UTC](https://root-forum.cern.ch/t/error-in-classificationkeras-py/59489 "2024-05-28T09:04:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zjzhao1002](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/zjzhao1002/32/36654_2.png) [@zjzhao1002](https://root-forum.cern.ch/u/zjzhao1002)\
**Post date:** [May 28, 2024, 9:04am UTC](https://root-forum.cern.ch/t/error-in-classificationkeras-py/59489/1 "2024-05-28T09:04:15Z")

</div>

Hi experts,

I tried to run the Keras example (ClassificationKeras.py) in the tutorial, but I always get an error:

> AttributeError: module ‘keras.\_tf\_keras.keras.backend’ has no attribute ‘set\_session’. Did you mean: ‘set\_epsilon’?

I guess the new version of Tensorflow has removed this attribute. I installed Tensorflow by pip and its version is 2.16.1 (Keras version is 3.3.3).

The ROOT I am using is version 6.30/06 installed by Homebrew.

Does anybody know which version of Tensorflow was used to test this example?

Zhijie

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [May 28, 2024, 9:08am UTC](https://root-forum.cern.ch/t/error-in-classificationkeras-py/59489/2 "2024-05-28T09:08:16Z")

</div>

Welcome to the ROOT Forum!  
I think @moneta can help
