There are two machine learning models, A and B.
Model A classifies samples into 'O' and 'G'.
Model B classifies the samples determined to be 'O' into 'S' and 'C'.
Each model shows the probabilties of classification.
Input samples pass through model A first, and if the result is O, then they enter model B. (If not they don't)
In this case, how could I get the probabilities of classifications, G, S or C?