Convergence of htm.core

Hi everyone, I want to understand the HTM.core algorithm how it converges and get its convergence diagram (for example, for MNIST classification task). I mean, when instable learning behavior of the SP entering the stable state?
Would you please advise me on how to do this?