Dear TMVA experts,
I have started playing around with the PyKeras method, but I could not yet understand how the NN output is computed (for application).
I believe the relevant function is Double_t MethodPyKeras::GetMvaValue(…) [0], which returns the single value : fOutput[TMVA::Types::kSignal];
This fOutput
vector is said [1] to hold the probabilities for each target class (I have 2, signal and background).
-
Therefore, does
return fOutput[TMVA::Types::kSignal];
mean that only 1 output neuron (<-> signal) is read, not the 2 I have in my model ? -
What’s more I can not find where/how
fOutput
is filled. Does it simply contain the values held by each output neuron, or is some transformation applied (e.g. to ensure that the result are probabilities, etc.) ?
Thanks in advance, cheers,
Nicolas
[0] https://root.cern.ch/doc/v608/MethodPyKeras_8cxx_source.html#l00306
[1] https://root.cern.ch/doc/v608/MethodPyKeras_8cxx_source.html#l00109