Loading model_cnn.h5 model failured in TMVA

I book a CNN method,
factory.BookMethod(&loader, TMVA::Types::kPyKeras,
“PyKeras”,“H:!V:VarTransform=None:FilenameModel=model_cnn.h5:”
“FilenameTrainedModel=trained_model_cnn.h5:NumEpochs=20:BatchSize=256”);

but it failured with below mistake. I have used,
// for using Keras
gSystem->Setenv(“KERAS_BACKEND”,“tensorflow”);
TMVA::PyMethodBase::PyInitialize();

please give me a favour.Thank you very much

Hi!

First observation: The error tells you that there is No such file or directory. So probably your path is wrong?
Second problem: The interface does not support CNNs. Or it does support it as long as the inputs are “one-dimensional” in a sense that the input numpy array would be of rank 2 (batch size x number of variables).

Best
Stefan

Hi Stefan, I get it, thanks.