How does SP and TM parameters affect anomaly detection precision?

You should read this: NuPIC & Python 2 end of life