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.
1 reply
-
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.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I would need help with a problem regarding the evaluation of a
.weights.xml
model 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