Skip to content

Commit bf0c9ec

Browse files
committed
SP: make initialize and constructor default params match!
1 parent 9ac7eee commit bf0c9ec

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

src/htm/algorithms/SpatialPooler.hpp

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -229,14 +229,23 @@ class SpatialPooler : public Serializable
229229
230230
*/
231231
virtual void
232-
initialize(const vector<UInt> inputDimensions, const vector<UInt> columnDimensions,
233-
UInt potentialRadius = 16u, Real potentialPct = 0.5f,
234-
bool globalInhibition = true, Real localAreaDensity = DISABLED,
235-
Int numActiveColumnsPerInhArea = 10u, UInt stimulusThreshold = 0u,
236-
Real synPermInactiveDec = 0.01f, Real synPermActiveInc = 0.1f,
237-
Real synPermConnected = 0.1f, Real minPctOverlapDutyCycles = 0.001f,
238-
UInt dutyCyclePeriod = 1000u, Real boostStrength = 0.0f,
239-
Int seed = 1, UInt spVerbosity = 0u, bool wrapAround = true);
232+
initialize(const vector<UInt> inputDimensions,
233+
const vector<UInt> columnDimensions,
234+
UInt potentialRadius = 16u,
235+
Real potentialPct = 0.5f,
236+
bool globalInhibition = true,
237+
Real localAreaDensity = DISABLED,
238+
Int numActiveColumnsPerInhArea = 10u,
239+
UInt stimulusThreshold = 0u,
240+
Real synPermInactiveDec = 0.008f,
241+
Real synPermActiveInc = 0.05f,
242+
Real synPermConnected = 0.1f,
243+
Real minPctOverlapDutyCycles = 0.001f,
244+
UInt dutyCyclePeriod = 1000u,
245+
Real boostStrength = BOOSTING_DISABLED,
246+
Int seed = 1,
247+
UInt spVerbosity = 0u,
248+
bool wrapAround = true);
240249

241250

242251
/**

0 commit comments

Comments
 (0)