Skip to content

Commit c9c436e

Browse files
committed
Revert "SP: enforce boostStrength 0, or >= 1.0"
This reverts commit 9522acf.
1 parent 7ab155b commit c9c436e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/htm/algorithms/SpatialPooler.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ void SpatialPooler::setDutyCyclePeriod(UInt dutyCyclePeriod) {
172172
Real SpatialPooler::getBoostStrength() const { return boostStrength_; }
173173

174174
void SpatialPooler::setBoostStrength(Real boostStrength) {
175-
NTA_CHECK(boostStrength == 0.0f or boostStrength >= 1.0) << "Boost strength must be >= 1.0, or exactly 0.0 (=disabled).";
175+
NTA_CHECK(boostStrength >= 0.0f);
176176
boostStrength_ = boostStrength;
177177
}
178178

@@ -421,7 +421,7 @@ void SpatialPooler::initialize(
421421
synPermConnected_ = synPermConnected;
422422
minPctOverlapDutyCycles_ = minPctOverlapDutyCycles;
423423
dutyCyclePeriod_ = dutyCyclePeriod;
424-
setBoostStrength(boostStrength);
424+
boostStrength_ = boostStrength;
425425
spVerbosity_ = spVerbosity;
426426
wrapAround_ = wrapAround;
427427
updatePeriod_ = 50u;

0 commit comments

Comments
 (0)