# Nupic code

**URL:** <https://discourse.numenta.org/t/nupic-code/5493>\
**Category:** Getting Started\
**Created:** [February 22, 2019, 8:18am UTC](https://discourse.numenta.org/t/nupic-code/5493 "2019-02-22T08:18:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![1112](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/1112/32/3734_2.png) [@1112](https://discourse.numenta.org/u/1112)\
**Post date:** [February 22, 2019, 8:18am UTC](https://discourse.numenta.org/t/nupic-code/5493/1 "2019-02-22T08:18:59Z")

</div>

How do I want to know the underlying implementation of the code, what should I do? For example: the hotgym example of the opf framework in Nupic, use from nupic.frameworks.opf.model\_factory import ModelFactory, and then call various functions, where model.run (input data), output data corresponding to SDR, how this process is viewed Or the underlying source code package can’t be seen. I am using the python version.

---

<div class="post-metadata">

**Author:** ![marty1885](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/marty1885/32/1891_2.png) [@marty1885](https://discourse.numenta.org/u/marty1885)\
**Post date:** [February 22, 2019, 8:24am UTC](https://discourse.numenta.org/t/nupic-code/5493/2 "2019-02-22T08:24:37Z")

</div>

As nupic is an open source project. It is available here

> **[numenta/nupic](https://github.com/numenta/nupic)**
>
> Numenta Platform for Intelligent Computing is an implementation of Hierarchical Temporal Memory (HTM), a theory of intelligence based strictly on the neuroscience of the neocortex. - numenta/nupic

---

<div class="post-metadata">

**Author:** ![1112](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/1112/32/3734_2.png) [@1112](https://discourse.numenta.org/u/1112)\
**Post date:** [February 22, 2019, 8:38am UTC](https://discourse.numenta.org/t/nupic-code/5493/4 "2019-02-22T08:38:12Z")

</div>

![result](https://canada1.discourse-cdn.com/flex030/uploads/numenta/original/2X/7/75e6bdcfae8ebc3927fa8c19ef63726874ac2164.png) Why is the result of the result like this, there is no detailed calculation process for viewing its function.

---

<div class="post-metadata">

**Author:** ![marty1885](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/marty1885/32/1891_2.png) [@marty1885](https://discourse.numenta.org/u/marty1885)\
**Post date:** [February 22, 2019, 9:35am UTC](https://discourse.numenta.org/t/nupic-code/5493/5 "2019-02-22T09:35:43Z")

</div>

That’s the network API, it let’s you define the network upfront and hide the details.  
I believe this is what you are looking for

> <https://github.com/numenta/nupic/blob/master/src/nupic/algorithms/anomaly.py#L30>

---

<div class="post-metadata">

**Author:** ![1112](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/1112/32/3734_2.png) [@1112](https://discourse.numenta.org/u/1112)\
**Post date:** [February 22, 2019, 1:09pm UTC](https://discourse.numenta.org/t/nupic-code/5493/6 "2019-02-22T13:09:42Z")

</div>

This is what I need, thank you very much for your help.😁
