# How temporal memory algorithm working?

**URL:** <https://discourse.numenta.org/t/how-temporal-memory-algorithm-working/4415>\
**Category:** Lounge\
**Created:** [August 28, 2018, 9:30am UTC](https://discourse.numenta.org/t/how-temporal-memory-algorithm-working/4415 "2018-08-28T09:30:20Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![shiva](https://avatars.discourse-cdn.com/v4/letter/s/85e7bf/32.png) [@shiva](https://discourse.numenta.org/u/shiva)\
**Post date:** [August 28, 2018, 9:30am UTC](https://discourse.numenta.org/t/how-temporal-memory-algorithm-working/4415/1 "2018-08-28T09:30:20Z")

</div>

Hi dear  
i watch all video and read some of paper to understand HTM theory but i am so confuse and i think i dont understand correctly. whoud you mind explain me this theory in simple word, Especially spatial pooling and temporal memory  
**sincerely yours**  
thanks a lot

---

<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:** [August 28, 2018, 1:39pm UTC](https://discourse.numenta.org/t/how-temporal-memory-algorithm-working/4415/2 "2018-08-28T13:39:47Z")

</div>

There is nothing simpler than HTM School at the moment. I suggest you watch the relevant episodes again. Have you read BAMI?

---

<div class="post-metadata">

**Author:** ![shiva](https://avatars.discourse-cdn.com/v4/letter/s/85e7bf/32.png) [@shiva](https://discourse.numenta.org/u/shiva)\
**Post date:** [August 28, 2018, 1:43pm UTC](https://discourse.numenta.org/t/how-temporal-memory-algorithm-working/4415/3 "2018-08-28T13:43:56Z")

</div>

thanks, so do I. you know when I whatch video I think to implementation and sometimes I do not understand if I want run the code , what are this matrix and etc  
no can you send BAMI to me?

---

<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:** [August 28, 2018, 1:46pm UTC](https://discourse.numenta.org/t/how-temporal-memory-algorithm-working/4415/4 "2018-08-28T13:46:01Z")

</div>

> **[Biological and Machine Intelligence (BAMI)](https://numenta.com/resources/biological-and-machine-intelligence/)**
>
> Biological and Machine Intelligence (BAMI) is a living book authored by Numenta researchers and engineers. Its purpose is to document our theoretical framework for both biological and machine intelligence.

---

<div class="post-metadata">

**Author:** ![shiva](https://avatars.discourse-cdn.com/v4/letter/s/85e7bf/32.png) [@shiva](https://discourse.numenta.org/u/shiva)\
**Post date:** [August 28, 2018, 1:47pm UTC](https://discourse.numenta.org/t/how-temporal-memory-algorithm-working/4415/5 "2018-08-28T13:47:51Z")

</div>

thanks a lot, you are great

---

<div class="post-metadata">

**Author:** ![sheiser1](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/sheiser1/32/766_2.png) [@sheiser1](https://discourse.numenta.org/u/sheiser1)\
**Post date:** [August 28, 2018, 3:02pm UTC](https://discourse.numenta.org/t/how-temporal-memory-algorithm-working/4415/6 "2018-08-28T15:02:25Z")

</div>

Hey @shiva, for implementation you may want to have a look at this new python notebook. It’s a lot like the existing API demo with some additional stuff. You can implement the encoding, SP and TM algorithms piece by piece:

> [@Algorithm API notebook for new-ish interested people](https://discourse.numenta.org/t/algorithm-api-notebook-for-new-ish-interested-people/4405):
>
> Hopefully this is the proper place to post this. I’ve been playing around with NuPIC for a little while, watching the videos and reading through much of the literature. While working through the [Algorithms API Quickstart](http://nupic.docs.numenta.org/1.0.5/quick-start/algorithms.html), I made a Jupyter notebook to document the process, adding simple examples where I could. I took a little time to polish it up if other people want to use it as a resource. It borrows very heavily from the Quickstart code, so I hope I’m not stepping on any toes. Very big thanks…

---

<div class="post-metadata">

**Author:** ![shiva](https://avatars.discourse-cdn.com/v4/letter/s/85e7bf/32.png) [@shiva](https://discourse.numenta.org/u/shiva)\
**Post date:** [August 29, 2018, 8:06am UTC](https://discourse.numenta.org/t/how-temporal-memory-algorithm-working/4415/7 "2018-08-29T08:06:41Z")

</div>

thank you very much, I really like run this demo but I am Beginner and I do not work python before, would you mind explain me what should I do to run this code?  
for example which version of python I should install and then how run this code?

---

<div class="post-metadata">

**Author:** ![Jonathan\_Mackenzie](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/jonathan_mackenzie/32/118_2.png) [@Jonathan\_Mackenzie](https://discourse.numenta.org/u/Jonathan_Mackenzie)\
**Post date:** [August 29, 2018, 9:41am UTC](https://discourse.numenta.org/t/how-temporal-memory-algorithm-working/4415/8 "2018-08-29T09:41:00Z")

</div>

You need to download and install python 2.7.15 [https://www.python.org/downloads/release/python-2715/](https://www.python.org/downloads/release/python-2715/)

Then from a terminal or cmd prompt run:

```bash
pip install nupic

```

From there you can run the examples in the quick start guide: [http://nupic.docs.numenta.org/stable/quick-start/index.html](http://nupic.docs.numenta.org/stable/quick-start/index.html)

But first, you should probably learn a bit more about programming before diving into something like this.

Perhaps HTM Studio would be a better option for you: [https://numenta.com/machine-intelligence-technology/htm-studio/](https://numenta.com/machine-intelligence-technology/htm-studio/)

---

<div class="post-metadata">

**Author:** ![shiva](https://avatars.discourse-cdn.com/v4/letter/s/85e7bf/32.png) [@shiva](https://discourse.numenta.org/u/shiva)\
**Post date:** [October 13, 2018, 9:25am UTC](https://discourse.numenta.org/t/how-temporal-memory-algorithm-working/4415/9 "2018-10-13T09:25:55Z")

</div>

Thank you very much! but i didnt work with Jupyter Notebook, I would be grateful if you could help me and explain what should I do to run this code?

---

<div class="post-metadata">

**Author:** ![AsemanNili](https://avatars.discourse-cdn.com/v4/letter/a/9f8e36/32.png) [@AsemanNili](https://discourse.numenta.org/u/AsemanNili)\
**Post date:** [December 30, 2021, 8:31am UTC](https://discourse.numenta.org/t/how-temporal-memory-algorithm-working/4415/11 "2021-12-30T08:31:07Z")

</div>

Ms. Shiva  
Salam  
I’m Nili who has been familiar with HTM for some time, have read its articles and books, and have been able to develop HTM on .NET and in C# and C ++. Email me if you wish ([aseman-developer@outlook.com](mailto:aseman-developer@outlook.com))

---

<div class="post-metadata">

**Author:** ![david.pfx](https://avatars.discourse-cdn.com/v4/letter/d/c68b51/32.png) [@david.pfx](https://discourse.numenta.org/u/david.pfx)\
**Post date:** [December 31, 2021, 9:54am UTC](https://discourse.numenta.org/t/how-temporal-memory-algorithm-working/4415/12 "2021-12-31T09:54:16Z")

</div>

I understand your pain. I don’t know what the question was, but Python is not the answer.  
I’d be interested to take a look, but you really need to publish it on GitHub or similar.
