Replies: 3 comments 1 reply
-
|
@alesaggio I would first try to see if the TMVA model can be converted into xgboost. There is a conversion function from xgboost to TMVA in the ROOT pacakge: #in pyroot
ROOT.TMVA.SaveXGBoost(xgb, "myBDT", "model.root")so the opposite must be possible! However, unsurprisingly there does not appear to be a pre-written implementation for this. Adding: |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for your replies. I will keep looking for options, though what you mention seems like a useful starting point. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I would need help with a problem regarding the evaluation of a
.weights.xmlmodel derived from ROOT TMVA in a Coffea-based framework.I have a model file derived from a TMVA training that provides the value of a lepton ID, given some lepton variables, when being evaluated over. The problem is that the TMVA functions (such as
TMVA.AddVariable(..)orTMVA.EvaluateMVA(..)) operate lepton by lepton, which is not good for my setup because I am working with awkward arrays, and so what I need is to evaluate the model on the whole lepton array "at once". Looping over the leptons is of course not a viable solution… I believe that a way out might be to convert the TMVA model into some coffea/awkward-compatible one, so that I could evaluate my model directly on Jagged Arrays or even dataframes. Do you know what the best way to approach this is?Beta Was this translation helpful? Give feedback.
All reactions