Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Questions about running the_htm_spatial_pooler program #15

Closed
PerfectVeo opened this issue Mar 11, 2019 · 2 comments
Closed

Questions about running the_htm_spatial_pooler program #15

PerfectVeo opened this issue Mar 11, 2019 · 2 comments

Comments

@PerfectVeo
Copy link

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
Copy link
Author

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

@rhyolight
Copy link
Member

rhyolight commented Mar 18, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants