# Swarm with category encoder

**URL:** <https://discourse.numenta.org/t/swarm-with-category-encoder/751>\
**Category:** NuPIC\
**Created:** [June 11, 2016, 11:53pm UTC](https://discourse.numenta.org/t/swarm-with-category-encoder/751 "2016-06-11T23:53:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pulinagrawal](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/pulinagrawal/32/3121_2.png) [@pulinagrawal](https://discourse.numenta.org/u/pulinagrawal)\
**Post date:** [June 11, 2016, 11:53pm UTC](https://discourse.numenta.org/t/swarm-with-category-encoder/751/1 "2016-06-11T23:53:43Z")

</div>

I am trying to figure out how to specify all the possible categories that might exist in my data in the swarm\_description.py file.

Any help will be greatly appreciated.

Thanks

---

<div class="post-metadata">

**Author:** ![subutai](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/subutai/32/106_2.png) [@subutai](https://discourse.numenta.org/u/subutai)\
**Post date:** [June 13, 2016, 3:25pm UTC](https://discourse.numenta.org/t/swarm-with-category-encoder/751/2 "2016-06-13T15:25:58Z")

</div>

I don’t think you need to do anything. The SDRCategoryEncoder encodes new categories on the fly with unique random SDRs.
