Hi dear experts,
The following part shows a section of my script;
from ROOT import TFile, TMVA, TCut, TCanvas
outputFile = TFile( “TMVA.root”, ‘RECREATE’ )
factory = TMVA.Factory( “TMVAClassification”, outputFile
. In here i load all variables into my factory, prepare training and booked methods.
None of the previous three classes are displaying any kind of plots. Is there a way to fix this problem?
I am running the following:
ROOT 5.34/36 (heads/v5-34-00-patches@v5-34-34-76-g57bae4c, Apr 08 2016, 12:05:00 on linuxx8664gcc)
How are you running ROOT 5.34 on SWAN?
Sorry, it is not ROOT 5.34. When I import ROOT to SWAN i get;
“Welcome to JupyROOT 6.12/06”
Could you post a minimal example script that reproduces your problem? That would help a lot
Yes. Here is a minimal example of the script that I am trying to run (not quite the same but very similar):
TMVATest.py (3.4 KB)
You can copy and pace the script to SWAN and everything should work fine. The only problem is that none of my plots are display.
Hi, thanks for the reproducer. The issue is now understood and will be fixed asap (probably in the next bugfix release of 6.12).
Could you try your setup through SWAN now. Hopefully the problem has now been resolved
Please report back whether it works or not!
June 11, 2019, 8:31am
I read this post but I am still not able to use %jsmva on in my script to plot variables. My scripts can be found here
The error looks like this
ImportErrorTraceback (most recent call last)
1 import ROOT
----> 2 get_ipython().magic(u’jsmva on’)
/cvmfs/sft.cern.ch/lcg/views/LCG_95a/x86_64-centos7-gcc7-opt/lib/python2.7/site-packages/IPython/core/interactiveshell.pyc in magic(self, arg_s)
2158 magic_name, _, magic_arg_s = arg_s.partition(’ ')
2159 magic_name = magic_name.lstrip(prefilter.ESC_MAGIC)
-> 2160 return self.run_line_magic(magic_name, magic_arg_s)