# HTM do not perform well when learning a simple function like y=x!

**URL:** <https://discourse.numenta.org/t/htm-do-not-perform-well-when-learning-a-simple-function-like-y-x/3364>\
**Category:** NuPIC\
**Created:** [January 24, 2018, 4:12am UTC](https://discourse.numenta.org/t/htm-do-not-perform-well-when-learning-a-simple-function-like-y-x/3364 "2018-01-24T04:12:08Z")\
**Posts on this page:** 1\
**Showing post:** 18

<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:** [January 24, 2018, 2:53pm UTC](https://discourse.numenta.org/t/htm-do-not-perform-well-when-learning-a-simple-function-like-y-x/3364/18 "2018-01-24T14:53:10Z")

</div>

First of all, NuPIC will never predict a sequence like x=y or x=y! or x=y2 because those functions don’t create repeating sequences. They just go on in one direction forever, there are never any patterns to understand. It does better with a repeating pattern like `x=sin(y)` but still not good (for [other](https://discourse.numenta.org/t/what-does-one-step-ahead-prediction-mean-in-the-sine-wave-prediction-example/2362) reasons)

2nd thing is that you can [format your code](https://discourse.numenta.org/t/posting-code-on-htm-forum/1412) in your posts and it looks much better. I’ve already done this for you.

---

_[View the full topic](https://discourse.numenta.org/t/htm-do-not-perform-well-when-learning-a-simple-function-like-y-x/3364)._
