Permalink
Browse files

Merge pull request #3419 from ywcui1990/updateHotGym

Update simple hotgym example in NuPIC
  • Loading branch information...
2 parents f8ddfde + e195103 commit a8daa664d084b120079aef07b6303be5908f5c6c @subutai subutai committed on GitHub Dec 21, 2016
Showing with 19 additions and 15 deletions.
  1. +1 −1 examples/opf/clients/hotgym/simple/hotgym.py
  2. +18 −14 examples/opf/clients/hotgym/simple/model_params.py
@@ -54,7 +54,7 @@
params={'errorMetric': 'altMAPE', 'window': 1000, 'steps': 1}),
)
-_NUM_RECORDS = 1000
+_NUM_RECORDS = 4000
@@ -84,19 +84,19 @@
# Example for 1.5 days: sensorAutoReset = dict(days=1,hours=12),
#
# (value generated from SENSOR_AUTO_RESET)
- 'sensorAutoReset' : None,
+ 'sensorAutoReset': None,
},
'spEnable': True,
'spParams': {
# SP diagnostic output verbosity control;
# 0: silent; >=1: some info; >=2: more info;
- 'spVerbosity' : 0,
+ 'spVerbosity': 0,
# Spatial Pooler implementation selector.
# Options: 'py', 'cpp' (speed optimized, new)
- 'spatialImp' : 'cpp',
+ 'spatialImp': 'cpp',
'globalInhibition': 1,
@@ -128,6 +128,11 @@
'synPermActiveInc': 0.04,
'synPermInactiveDec': 0.005,
+
+ # boostStrength controls the strength of boosting. It should be a
+ # a number greater or equal than 0.0. No boosting is applied if
+ # boostStrength=0.0. Boosting encourages efficient usage of SP columns.
+ 'boostStrength': 3.0,
},
# Controls whether TP is enabled or disabled;
@@ -154,14 +159,14 @@
'seed': 1960,
- # Temporal Pooler implementation selector (see _getTPClass in
+ # Temporal Memory implementation selector (see _getTPClass in
# CLARegion.py).
'temporalImp': 'cpp',
# New Synapse formation count
# NOTE: If None, use spNumActivePerInhArea
#
- # TODO: need better explanation
+ # The number of synapses added to a segment during learning
'newSynapseCount': 20,
# Maximum number of synapses per segment
@@ -182,8 +187,7 @@
# description.py.
'maxSegmentsPerCell': 128,
- # Initial Permanence
- # TODO: need better explanation
+ # Initial permanence for newly created synapses
'initialPerm': 0.21,
# Permanence Increment
@@ -192,7 +196,7 @@
# Permanence Decrement
# If set to None, will automatically default to tpPermanenceInc
# value.
- 'permanenceDec' : 0.1,
+ 'permanenceDec': 0.1,
'globalDecay': 0.0,
@@ -221,21 +225,21 @@
},
'clParams': {
- 'regionName' : 'SDRClassifierRegion',
+ 'regionName': 'SDRClassifierRegion',
# Classifier diagnostic output verbosity control;
# 0: silent; [1..6]: increasing levels of verbosity
- 'verbosity' : 0,
+ 'verbosity': 0,
- # This controls how fast the classifier learns/forgets. Higher values
- # make it adapt faster and forget older patterns faster.
- 'alpha': 0.0001,
+ # This controls how fast the classifier learns/forgets. Higher
+ # values make it adapt faster and forget older patterns faster.
+ 'alpha': 0.1,
# This is set after the call to updateConfigFromSubConfig and is
# computed from the aggregationInfo and predictAheadTime.
'steps': '1,5',
- 'implementation': 'py',
+ 'implementation': 'cpp',
},
'trainSPNetOnlyIfRequested': False,

0 comments on commit a8daa66

Please sign in to comment.