The differance using or not using spatial pooling or temporal memory

hello all,
I have a question when i read the codes of nupic-master, i find some codes in model params choose SP true others SP false ,and some codes choose TM true others TM false,why? i want to know the differance about choose true or false?
thanks all.

What params are you talking about? May you show the code in question?
If you’re talking about the compute method. The Boolean value is used to tell the SP/TM to learn or not.


sp.compute(in, true, out); //Run the spatial pooler and learn from the data
sp.compute(in, false, out); //Run the spatial pooler and DON'T learn