htm-community / htm.core

Actively developed Hierarchical Temporal Memory (HTM) community fork (continuation) of NuPIC. Implementation for C++ and Python
http://numenta.org
GNU Affero General Public License v3.0
150 stars 74 forks source link

Improve speed of SP local inhibition, 70x slower than global #123

Open breznak opened 5 years ago

breznak commented 5 years ago

CC CUDA SP #50, SP faster LocalInho #86 , #92

From https://github.com/htm-community/nupic.cpp/pull/119#pullrequestreview-178811874 :

I'm evaluation the performance impact of ND vs 1D, where algorithmically the 1D is really simpler.

TL;DR

breznak commented 4 years ago

Thanks to PR #769 local inhibition (only for wrapAround=true) is now 2x faster!

local inhibition is very slow! 70x (1s vs 74s global/local inhibition)

which equals to improvement and it's now only 10x slower than global inh!