Does anyone face the problem when transforming some set of variables from the entire variable list? Eventually, I would like to apply Gaussian transformation on just some of the variables not for all, so following the instructions given in the TMVA user’s guide, I wrote the following line in my code:
factory.BookMethod(dataloader, TMVA.Types.kPyKeras, ‘PyKeras’, “H:!V:VarTransform=(names of the variables which I want to transform)”)
Unfortunalely, I get the following error:
: Dataset[TMVAb15_b1_sb] : Class 3Jets, not known for variable transformation (InvMass, please check.
Although, I added all the variables to the DataLoader.
Hi,
Can you please post your code and possibly also your input data (or a subset of it), so we can reproduce the issue you are having.
Normally it should work the transformation for individual variables if done as in the Users Guide, see paragraph 4.1.5, page 52.
I also tried to transform variables by their index as it’s written in the TMVA Users Guide:
VarTransform=N(V0, V3 , T3, etc.). However, the same error appeared.
Ultimately, I want to transform all my variables except lead_lep_charge.
Hi,
Thank you for your code example. Can you also please post a small snapshots of your data file (just few events), so I can try your script ?
I have tried similar code with PyKeras and it works for me.
Hi,
Thank you for the data file. You script has an error, the last variable in the data file is called lead_lep_pid instead of lead_lep_charge.
Another problem is that you should remove the space when defining the transformation variables.
Do: