Skip to content
This repository has been archived by the owner on Sep 1, 2023. It is now read-only.

Rename maxBoost to boostStrength #3423

Merged
merged 42 commits into from
Dec 12, 2016
Merged

Conversation

ywcui1990
Copy link
Contributor

@ywcui1990 ywcui1990 commented Dec 8, 2016

Fixes: #3422
Depends on:
#3411
numenta/nupic.core-legacy#1174
numenta/nupic.core-legacy#1178

Summary:

  • Rename maxBoost to boostStrength in spatial pooler
  • Modify all usage of maxBoost
  • Set default parameter of boostStrength to 0.0 (no boosting)

Note: this will be a breaking change.

Yuwei Cui and others added 30 commits September 15, 2016 17:29
For permanances, use an EPSILON.

For boosting, round the boost factor to a couple decimal
places. Floating point differences have a larger effect on boosting
because it's multiplicative.
Avoid floating point differences with C++ SpatialPooler
Yuwei Cui and others added 7 commits December 6, 2016 12:25
It's proving to be too difficult. So our options are:

1. Use shared C code to calculate boost factors and duty cycles
   for Python and C++ SpatialPoolers
2. Don't try to make them equal. Change the compatibility test to
   make sure the boost factor is right "enough", and then force them
   to be exactly equal, similar to what we already do with
   permanences.

This change takes the second approach, which I think is the better
approach.
Rather than using a mathy heuristic with an "arbitration" constant,
explicitly handle the tie-break case.

This mirrors a change in the C++ code. It's needed for compatibility.
@numenta-ci
Copy link
Contributor

By analyzing the blame information on this pull request, we identified @scottpurdy, @subutai and @baroobob to be potential reviewers

@ywcui1990
Copy link
Contributor Author

@mrcslws The opf_checkpoint_test still fails with this PR with a segmentation fault. It looks like some backward compatibility tests failed due to the removal of minPctActiveDutyCycle. The rest of the tests passes on my machine.

@mrcslws mrcslws merged commit d41be18 into numenta:master Dec 12, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants