# Plotting \`\`\`mvaeffs\`\`\` in PyROOT (without calling TMVAGui)

**URL:** <https://root-forum.cern.ch/t/plotting-mvaeffs-in-pyroot-without-calling-tmvagui/50935>\
**Category:** Newbie\
**Tags:** tmva\
**Created:** [July 24, 2022, 3:27am UTC](https://root-forum.cern.ch/t/plotting-mvaeffs-in-pyroot-without-calling-tmvagui/50935 "2022-07-24T03:27:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![NgJunKai](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ngjunkai/32/30046_2.png) [@NgJunKai](https://root-forum.cern.ch/u/NgJunKai)\
**Post date:** [July 24, 2022, 3:27am UTC](https://root-forum.cern.ch/t/plotting-mvaeffs-in-pyroot-without-calling-tmvagui/50935/1 "2022-07-24T03:27:02Z")

</div>

As stated in the topic, is there any possible way to this ? I just want to pull out the optimal cut value for the classifier…

I have tried something like this (without luck, the ipynb kernel just restarted automatically)

````auto
dataset = r.TString("dataset")
Fin = r.TString("/results/TrainingResult.root")
r.TMVA.mvaeffs(dataset,Fin, 1000, 1000, useTMVAStyle = r.kTRUE, formula = "S/sqrt(S+B)")```
___
_ROOT Version: 6.24 (PyROOT via conda)
_Platform:Centos7
_Compiler: gcc9
___
````

---

<div class="post-metadata">

**Author:** ![jalopezg](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jalopezg/32/25844_2.png) [@jalopezg](https://root-forum.cern.ch/u/jalopezg)\
**Post date:** [July 25, 2022, 10:48am UTC](https://root-forum.cern.ch/t/plotting-mvaeffs-in-pyroot-without-calling-tmvagui/50935/2 "2022-07-25T10:48:58Z")

</div>

@moneta should be able to help you with that.
