# The most / least frequent pattern

**URL:** <https://discourse.numenta.org/t/the-most-least-frequent-pattern/2989>\
**Category:** NuPIC\
**Tags:** temporal-pooling\
**Created:** [October 27, 2017, 3:44pm UTC](https://discourse.numenta.org/t/the-most-least-frequent-pattern/2989 "2017-10-27T15:44:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![zahir\_hamroune](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/zahir_hamroune/32/5139_2.png) [@zahir\_hamroune](https://discourse.numenta.org/u/zahir_hamroune)\
**Post date:** [October 27, 2017, 3:44pm UTC](https://discourse.numenta.org/t/the-most-least-frequent-pattern/2989/1 "2017-10-27T15:44:57Z")

</div>

Hi guys.  
I’m curious about how to detect the most or less??? frequent patterns or sequences seen by TP. It will be good to extract theses things.

---

<div class="post-metadata">

**Author:** ![rhyolight](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/rhyolight/32/3922_2.png) [@rhyolight](https://discourse.numenta.org/u/rhyolight)\
**Post date:** [October 27, 2017, 3:50pm UTC](https://discourse.numenta.org/t/the-most-least-frequent-pattern/2989/2 "2017-10-27T15:50:21Z")

</div>

> [@zahir\_hamroune](#):
>
> seen by TP

Just to be clear, we do not use the old [temporal pooler](https://discourse.numenta.org/t/understanding-old-temporal-pooler-2011/39) anymore at Numenta. I will assume you are talking about the [temporal memory](https://discourse.numenta.org/t/temporal-memory-quiz/2174) algorithm.

We are not currently focusing on temporal sequence pooling at the moment, so I can’t answer your question. But here is a relevant topic:

> [@How SMI might inform Temporal Pooling](https://discourse.numenta.org/t/how-smi-might-inform-temporal-pooling/2515):
>
> Now that you are moving full speed ahead with sensorimotor learning, where does temporal pooling stand? So far there are lots of resources and documentation on spatial pooling and temporal sequence learning. Even lots of info on sensorimotor learning! But the concept of temporal pooling seems to be not so solidified. It was never covered in HTM school and the only discussions I’ve seen on the forum here is different strategies to try. You have a TemporalMemory in NUPIC, but I’m pretty su…

---

<div class="post-metadata">

**Author:** ![scott](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/scott/32/170_2.png) [@scott](https://discourse.numenta.org/u/scott)\
**Post date:** [October 27, 2017, 3:57pm UTC](https://discourse.numenta.org/t/the-most-least-frequent-pattern/2989/3 "2017-10-27T15:57:10Z")

</div>

You should keep track of frequency of spatial patterns or columns and TM cells on your own if you want to keep track of the most common patterns or sequences.

---

<div class="post-metadata">

**Author:** ![zahir\_hamroune](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/zahir_hamroune/32/5139_2.png) [@zahir\_hamroune](https://discourse.numenta.org/u/zahir_hamroune)\
**Post date:** [October 27, 2017, 4:41pm UTC](https://discourse.numenta.org/t/the-most-least-frequent-pattern/2989/4 "2017-10-27T16:41:35Z")

</div>

Ok i see. So we can imagine a counter based on hash(cols)…
