Hacktm
A C++ library for experimenting with Numenta's Cortical Learning Algorithms
Install / Use
/learn @glguida/HacktmREADME
HackTM C++ library
This library implements the Cortical Learning Algorithm as described by Numenta's paper[1] in C++. It is meant to be a framework to experiment with HTMs and the algorithm itself.
This library works using bitmaps for input and output, and it is able to associate these bitmaps to a generic, n-dimensional space.
No aggressive optimizations have been pursued, memory usage is not optimal but it is fast enough and it is designed to be easily pipelined by parallel threads.
To ease portability, it only uses STL library, with the exception of LLVM BitVector class, included in the tree.
COMPILATION INSTRUCTIONS:
You will need cmake (http://www.cmake.org) to generate makefiles. When you have installed cmake in your system, create a build directory, cd into it and type:
$ cmake /path/to/sources/
where "/path/to/sources/" is the place where the source have been installed. If successful, you can type "make" and have the library and tests compiled.
DIFFERENCES BETWEEN NUMENTA'S ALGORITHM AND HACKTM:
- Boosting has not been implemented. There's no technical problem behind implementing it, just lack of interest at this moment.
- Sequence segments and prediction segments are treated separately. This helps the sequential learner to better differentiate between sequences with the same elements but in different order.
IMPORTANT NOTES ABOUT THE USE OF THIS SOFTWARE AND THE CLA ALGORITHM
This software is inteded for personal use and research only. Numenta owns the Intellectual Property of the HTM algorithm. Please refer to Numenta website for more information.
Also note that I am not affiliated at all with such company, and that this library is the result of programming in my free time.
[1] http://numenta.com/htm-overview/education/HTM_CorticalLearningAlgorithms.pdf
Related Skills
YC-Killer
2.7kA library of enterprise-grade AI agents designed to democratize artificial intelligence and provide free, open-source alternatives to overvalued Y Combinator startups. If you are excited about democratizing AI access & AI agents, please star ⭐️ this repository and use the link in the readme to join our open source AI research team.
groundhog
399Groundhog's primary purpose is to teach people how Cursor and all these other coding agents work under the hood. If you understand how these coding assistants work from first principles, then you can drive these tools harder (or perhaps make your own!).
last30days-skill
18.8kAI agent skill that researches any topic across Reddit, X, YouTube, HN, Polymarket, and the web - then synthesizes a grounded summary
sec-edgar-agentkit
10AI agent toolkit for accessing and analyzing SEC EDGAR filing data. Build intelligent agents with LangChain, MCP-use, Gradio, Dify, and smolagents to analyze financial statements, insider trading, and company filings.
