# HTM.java network setup for making predictions

**URL:** <https://discourse.numenta.org/t/htm-java-network-setup-for-making-predictions/1886>\
**Category:** HTM.Java\
**Created:** [February 8, 2017, 9:28am UTC](https://discourse.numenta.org/t/htm-java-network-setup-for-making-predictions/1886 "2017-02-08T09:28:36Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![cogmission](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/cogmission/32/11_2.png) [@cogmission](https://discourse.numenta.org/u/cogmission)\
**Post date:** [February 8, 2017, 3:29pm UTC](https://discourse.numenta.org/t/htm-java-network-setup-for-making-predictions/1886/4 "2017-02-08T15:29:23Z")

</div>

Hi @pguler,

Thank you for providing those details of your setup.

> [@pguler](#):
>
> 1, 1000, 0, 0, Boolean.FALSE, Boolean.FALSE, Boolean.FALSE, “alarm”, “float”, “ScalarEncoder”);

These are: min, max, radius, resolution, is periodic, is clipped, is forced …

Right off, your resolution seems off. Since there are 100 increments per bucket, you could try putting 100 here.  
making it: ```1, 1000, 0, 100, …

Also you could try a radius of “50” to give it perfect contiguous overlap (experiment with this one).

I am not the most experienced “user” of NuPIC, so I will have to _play_ with it and get back to you. You might also try printing out the parameter settings at the end of your run with ```connections. printParameters()`` - which could be helpful to look at…

Also, if anyone else from Numenta has any ideas please chime in?

In the meantime:  
1.) You could try using the configurations used for the DayOfWeek examples which are used quite frequently for testing (see the tests and examples code) - because the inputs are very similar (small limited cyclical set).  
2.) Try using the RandomDistributedScalarEncoder which configures `w` and `n` automatically. (See the tests which call the setup of the encoder parameters for the RDSE)

…again, I’m going to try running this myself - but I won’t be able to get back to you with my results immediately, but sometime today…

Cheers,  
David

---

_[View the full topic](https://discourse.numenta.org/t/htm-java-network-setup-for-making-predictions/1886)._
