Wrong/bad inferring

Hi, I am loading a multi-class Particle IDentification (PID) model into a C++ code and loop over all the events contains in a ROOT file to PID the tracks. The inferring is giving strange results. Even if I am using the training ROOT file, I am not getting back the expected results. How should I approach this problem?

tks ig.