ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/VHbb/python/train.py
(Generate patch)

Comparing UserCode/VHbb/python/train.py (file contents):
Revision 1.11 by peller, Wed Oct 3 12:15:52 2012 UTC vs.
Revision 1.12 by peller, Fri Oct 5 16:24:52 2012 UTC

# Line 55 | Line 55 | weightF=config.get('Weights','weightF')
55  
56  
57   def getTree(job,cut,path,subsample=-1):
58 <    print path+'/'+job.getpath()
58 >    #print path+'/'+job.getpath()
59      newinput = TFile.Open(path+'/'+job.getpath(),'read')
60      output.cd()
61      Tree = newinput.Get(job.tree)
# Line 263 | Line 263 | for var in MVA_Vars['Nominal']:
263  
264   #Execute TMVA
265   factory.SetSignalWeightExpression(weightF)
266 + factory.SetBackgroundWeightExpression(weightF)
267   factory.Verbose()
268   factory.BookMethod(MVAtype,MVAname,MVAsettings)
269   factory.TrainAllMethods()

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines