numenta / htmpapers

Numenta published papers code and data
GNU Affero General Public License v3.0
322 stars 89 forks source link

Questions about running the_htm_spatial_pooler program #15

Closed PerfectVeo closed 5 years ago

PerfectVeo commented 5 years ago

I tried running train_sp.py but it didn't work. I don't know the reason, so I want to ask for help. Error message: Traceback (most recent call last):    File "/disk2/zya/htm_pro/htm-paper/frontiers/the_htm_spatial_pooler_a_neocortical_algorithm_for_online_sparse_distributed_coding/train_sp.py", line 640, in      Metrics, expName = runSPexperiments(expConfig)    File "/disk2/zya/htm_pro/htm-paper/frontiers/the_htm_spatial_pooler_a_neocortical_algorithm_for_online_sparse_distributed_coding/train_sp.py", line 553, in runSPexperiments      reconstructionError(sp, testInputs, activeColumnsCurrentEpoch))    File "/disk2/zya/env/paper-htm/lib/python2.7/site-packages/htmresearch/frameworks/sp_paper/sp_metrics.py", line 836, in reconstructionError      numActiveColumns = int(sp._localAreaDensity * sp._numColumns) + 0.0 AttributeError: 'SpatialPooler' object has no attribute '_localAreaDensity'

PerfectVeo commented 5 years ago

The nupic version in my site-package is 1.0.5. htmresearch version is 0.0.3

rhyolight commented 5 years ago

To run these, you'll probably need the latest compiled version of each library:

nupic 1.0.6.dev0
nupic.bindings 1.0.7.dev0

This means you will need to compile nupic and nupic-core locally. There are instructions for doing so in the README files.