Using rdataframes in TMVA

I have a general question. How do I use an rdataframe as data input in TMVA? There is a tutorial for converting a rdataframe into an rtensor, but I don’t see any readily available information about inputting that rtensor into TMVA. Obviously, I could do a snapshot and write out the dataframe to a ttree and then use the ttree in TMVA, but I am looking for something else.

Hi,

I add in the loop the TMVA expert, @moneta .

Cheers,
D

Hi,
If you are using TMVA for evaluating a trained model you can use RDataFrame and its conversion to RTensor to provide input to the RReader class. (see this tutorial).
For training a model, there is no support from RDataFrame, you would need to create a TTree using the snapshot functionality of RDataFrame

Lorenzo