# Would there be any interest in a binary macOS version of HTM?

**URL:** <https://discourse.numenta.org/t/would-there-be-any-interest-in-a-binary-macos-version-of-htm/1280>\
**Category:** Implementations\
**Tags:** htm-implementations\
**Created:** [August 23, 2016, 6:57am UTC](https://discourse.numenta.org/t/would-there-be-any-interest-in-a-binary-macos-version-of-htm/1280 "2016-08-23T06:57:29Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mousi](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/mousi/32/674_2.png) [@Mousi](https://discourse.numenta.org/u/Mousi)\
**Post date:** [August 23, 2016, 6:57am UTC](https://discourse.numenta.org/t/would-there-be-any-interest-in-a-binary-macos-version-of-htm/1280/1 "2016-08-23T06:57:29Z")

</div>

Hello, I have implemented HTM in Swift for iOS/MacOS and am currently playing around with creating a test bench for simulations to get the best performance out of the system. The project will be finalised in a couple of weeks.

I have moved in a slightly different direction by implementing a own version that I think makes more sense, but maybe someone would be interested in the plain HTM binaries? Configuration is made by a XML file that really requires no programming skills. Performance is pretty good at 13.9MB per region of 2048 cells.

Here is a screen from Alpha and the GUI will need some additional work before being usable 🙂 (Excuse the black bar, but there was system information that is irrelevant for anyone but me).

Also excuse the rather nasty colors, they are there so I can see changes when the simulation runs really fast. Also my deepest apoligies for using a “windows like” blue in the background 😇 will actually change that to a more Mac-isch silver/gray gradient right now.

Green = Predicted  
Purple = Active  
Orange = Inactive

If anyone would be interested in binaries I can add some more stuff to it with encoder selection and stuff like that.

 ![](https://canada1.discourse-cdn.com/flex030/uploads/numenta/original/1X/d61a2ba1d3448ef75718828317b986b4c5c797db.png)

---

<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 23, 2016, 4:00pm UTC](https://discourse.numenta.org/t/would-there-be-any-interest-in-a-binary-macos-version-of-htm/1280/2 "2016-08-23T16:00:15Z")

</div>

I’m interested in seeing your codebase. Can you make it open source?

---

<div class="post-metadata">

**Author:** ![t.farley](https://avatars.discourse-cdn.com/v4/letter/t/7c8e57/32.png) [@t.farley](https://discourse.numenta.org/u/t.farley)\
**Post date:** [August 23, 2016, 7:12pm UTC](https://discourse.numenta.org/t/would-there-be-any-interest-in-a-binary-macos-version-of-htm/1280/3 "2016-08-23T19:12:30Z")

</div>

Yes, I’m interested !

---

<div class="post-metadata">

**Author:** ![BrainConstellation](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/brainconstellation/32/434_2.png) [@BrainConstellation](https://discourse.numenta.org/u/BrainConstellation)\
**Post date:** [August 24, 2016, 5:26am UTC](https://discourse.numenta.org/t/would-there-be-any-interest-in-a-binary-macos-version-of-htm/1280/4 "2016-08-24T05:26:06Z")

</div>

Yes, I am also very interested. I also like your GUI implementation, despite the colors. Can you make the codebase also available? Without the codebase as open source, it will not be possible for us to continue making improvements and modifications being discussed in the HTM-Theory threads.

---

<div class="post-metadata">

**Author:** ![Mousi](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/mousi/32/674_2.png) [@Mousi](https://discourse.numenta.org/u/Mousi)\
**Post date:** [August 24, 2016, 9:44am UTC](https://discourse.numenta.org/t/would-there-be-any-interest-in-a-binary-macos-version-of-htm/1280/5 "2016-08-24T09:44:19Z")

</div>

I can make the codebase open source, just have to remove some stuff from it like the way I form predictions and stuff like that. Will update this thread once the project is on GitHub in some weeks.

The original idea was to have the HTM as a box (Bin. download) where you can select your encoder and then input a file or stream of data using the standard set of encoders.

---

<div class="post-metadata">

**Author:** ![Mousi](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/mousi/32/674_2.png) [@Mousi](https://discourse.numenta.org/u/Mousi)\
**Post date:** [August 25, 2016, 7:43am UTC](https://discourse.numenta.org/t/would-there-be-any-interest-in-a-binary-macos-version-of-htm/1280/6 "2016-08-25T07:43:17Z")

</div>

Just a small update to give a flavour of how things could look in the end.  
I have still not come up with a understandable way to link the input graphically, I do enjoy working on this though so I will see it through to the end.

If anyone want a mac HTM ‘app’ functioning like a blackbox for their data, please do give suggestions on functions/features you would like to see.

In the top right corner I want to add a real time graph, similar to what Matt uses in the HTM school videos to graph the incoming data and show predictions/activation patterns in real time.

Still did not fix the nasty colors 🙂

 ![](https://canada1.discourse-cdn.com/flex030/uploads/numenta/original/1X/a1b0cedf96faacb63bf8aca1f63c60bdf05cc13a.jpeg) ![](https://canada1.discourse-cdn.com/flex030/uploads/numenta/original/1X/a1fb24698d7b6fa57a402a9f37f53a67d6fff8a1.png)

---

<div class="post-metadata">

**Author:** ![Mousi](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/mousi/32/674_2.png) [@Mousi](https://discourse.numenta.org/u/Mousi)\
**Post date:** [August 25, 2016, 11:21am UTC](https://discourse.numenta.org/t/would-there-be-any-interest-in-a-binary-macos-version-of-htm/1280/7 "2016-08-25T11:21:40Z")

</div>

Iteration++ managed to find a colorscheme that is fairly easy to see in action and does not induce feelings of sadness.

 ![](https://canada1.discourse-cdn.com/flex030/uploads/numenta/original/1X/1ab1fc4feac0825df1846dbba255a0058ddf6b4f.jpeg) ![](https://canada1.discourse-cdn.com/flex030/uploads/numenta/original/1X/25a7c074da32bf4bc6bff9b0e9b54e672755ef7a.jpeg)

---

<div class="post-metadata">

**Author:** ![Mousi](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/mousi/32/674_2.png) [@Mousi](https://discourse.numenta.org/u/Mousi)\
**Post date:** [August 26, 2016, 9:26am UTC](https://discourse.numenta.org/t/would-there-be-any-interest-in-a-binary-macos-version-of-htm/1280/8 "2016-08-26T09:26:15Z")

</div>

Refined the GUI a bit today. Have still not figured out how to show inputs (other than maybe graph form) or how to show multi-layer regions as space is limited.

I don’t have a boss so I feel this is meditative to post progress here, so I feel accountable to myself while maybe someone will find it useful and offer comments/input. If you think this is totally uninteresting just ignore the topic 🙂

The “dark bar” at the top will be a graph over time, showing prediction success rates and other data points.  
Right now the input is a hardcoded interface, I am thinking about how to solve this graphically, but nothing clean has appeared to me yet.

 ![](https://canada1.discourse-cdn.com/flex030/uploads/numenta/original/1X/9c778d15fe05592ab4dda5284249e82446f3bd98.jpeg)

---

<div class="post-metadata">

**Author:** ![Mousi](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/mousi/32/674_2.png) [@Mousi](https://discourse.numenta.org/u/Mousi)\
**Post date:** [August 26, 2016, 11:55am UTC](https://discourse.numenta.org/t/would-there-be-any-interest-in-a-binary-macos-version-of-htm/1280/9 "2016-08-26T11:55:29Z")

</div>

So this is how I will illustrate the regions… I am working on a algorithm to create a visual representation from the region by subsampling and “making it look good” but with a subset of “real” data.  
Not sure yet if to use 2D or 3D visuals.

 ![](https://canada1.discourse-cdn.com/flex030/uploads/numenta/original/1X/3cc9dbc3b78ba3ca1708c7cedc5d3237fe7f46a3.jpeg)

---

<div class="post-metadata">

**Author:** ![Mousi](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/mousi/32/674_2.png) [@Mousi](https://discourse.numenta.org/u/Mousi)\
**Post date:** [August 28, 2016, 11:16am UTC](https://discourse.numenta.org/t/would-there-be-any-interest-in-a-binary-macos-version-of-htm/1280/10 "2016-08-28T11:16:20Z")

</div>

Reduced loading time from 36minutes to… 86 seconds 😊  
I know one should not prematurely optimise things, but it kinda sucked waiting half an hour for 1!! region to load.

![](https://canada1.discourse-cdn.com/flex030/uploads/numenta/original/1X/e112d2d6598ed8e28cb7bf0e66f2a689a8e70fa7.jpeg)

---

<div class="post-metadata">

**Author:** ![Mousi](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/mousi/32/674_2.png) [@Mousi](https://discourse.numenta.org/u/Mousi)\
**Post date:** [August 29, 2016, 8:43am UTC](https://discourse.numenta.org/t/would-there-be-any-interest-in-a-binary-macos-version-of-htm/1280/11 "2016-08-29T08:43:06Z")

</div>

Played with asymmetrical SDR’s today and just experimenting. Disabled visual prediction (will create a button switch for it).  
 ![](https://canada1.discourse-cdn.com/flex030/uploads/numenta/original/1X/f382d6232127ffbeb61d5ff912654290c5628d7f.gif)

---

<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 29, 2016, 3:32pm UTC](https://discourse.numenta.org/t/would-there-be-any-interest-in-a-binary-macos-version-of-htm/1280/12 "2016-08-29T15:32:09Z")

</div>

Looks very cool!

but no one can work with it until you make it open source…

---

<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:** [August 29, 2016, 4:10pm UTC](https://discourse.numenta.org/t/would-there-be-any-interest-in-a-binary-macos-version-of-htm/1280/13 "2016-08-29T16:10:35Z")

</div>

…even so… I give it a +1 for the animated gif! 😛

---

<div class="post-metadata">

**Author:** ![Mousi](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/mousi/32/674_2.png) [@Mousi](https://discourse.numenta.org/u/Mousi)\
**Post date:** [August 29, 2016, 4:26pm UTC](https://discourse.numenta.org/t/would-there-be-any-interest-in-a-binary-macos-version-of-htm/1280/14 "2016-08-29T16:26:57Z")

</div>

My plan was to remove stuff, but instead the SP and TM became one and lives in the region. I will probably keep this as a separate project maybe and create a vanilla HTM behind the GUI and release it as open source.

---

<div class="post-metadata">

**Author:** ![Mousi](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/mousi/32/674_2.png) [@Mousi](https://discourse.numenta.org/u/Mousi)\
**Post date:** [September 3, 2016, 7:02am UTC](https://discourse.numenta.org/t/would-there-be-any-interest-in-a-binary-macos-version-of-htm/1280/15 "2016-09-03T07:02:10Z")

</div>

Just wanted to say sorry for lack of updates. I am currently in the process of relocating to Vienna, Austria so expect further updates in a week or two. I think I have solved the input visualisation issue in an elegant manner though.

---

<div class="post-metadata">

**Author:** ![dylanbeadle](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/dylanbeadle/32/914_2.png) [@dylanbeadle](https://discourse.numenta.org/u/dylanbeadle)\
**Post date:** [November 29, 2016, 2:57pm UTC](https://discourse.numenta.org/t/would-there-be-any-interest-in-a-binary-macos-version-of-htm/1280/16 "2016-11-29T14:57:11Z")

</div>

Any new updates? Eagerly looking forward to see the swift code. 🙂

---

<div class="post-metadata">

**Author:** ![mike.lwrnc](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/mike.lwrnc/32/231_2.png) [@mike.lwrnc](https://discourse.numenta.org/u/mike.lwrnc)\
**Post date:** [August 17, 2017, 10:17pm UTC](https://discourse.numenta.org/t/would-there-be-any-interest-in-a-binary-macos-version-of-htm/1280/17 "2017-08-17T22:17:20Z")

</div>

Was the code for this project ever released anywhere? Keen to use HTM in swift too.
