Skip to content

Commit

Permalink
Merge pull request #3411 from ywcui1990/boostingRes
Browse files Browse the repository at this point in the history
[RES-411] Implement New SP Boosting Rules in NuPIC
  • Loading branch information
mrcslws authored Dec 12, 2016
2 parents 380bf1b + 70ea394 commit 5c3edea
Show file tree
Hide file tree
Showing 32 changed files with 447 additions and 518 deletions.
2 changes: 1 addition & 1 deletion examples/network/core_encoders_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def createNetwork():
"synPermConnected": 0.1,
"synPermActiveInc": 0.0001,
"synPermInactiveDec": 0.0005,
"maxBoost": 1.0,
"boostStrength": 0.0,
}))

#
Expand Down
2 changes: 1 addition & 1 deletion examples/network/hierarchy_network_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"synPermConnected": 0.1,
"synPermActiveInc": 0.0001,
"synPermInactiveDec": 0.0005,
"maxBoost": 1.0}
"boostStrength": 0.0}

# Parameter dict for TPRegion
TP_PARAMS = {"verbosity": _VERBOSITY,
Expand Down
2 changes: 1 addition & 1 deletion examples/network/network_api_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"synPermConnected": 0.1,
"synPermActiveInc": 0.0001,
"synPermInactiveDec": 0.0005,
"maxBoost": 1.0,
"boostStrength": 0.0,
}

# Config field for TPRegion
Expand Down
5 changes: 4 additions & 1 deletion examples/opf/clients/hotgym/anomaly/model_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@

'synPermInactiveDec': 0.0005,

'maxBoost': 1.0,
# 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 columns.
'boostStrength': 0.0,
},

# Controls whether TP is enabled or disabled;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
'spParams': { 'columnCount': 2048,
'globalInhibition': 1,
'inputWidth': 0,
'maxBoost': 2.0,
'boostStrength': 2.0,
'numActiveColumnsPerInhArea': 40,
'potentialPct': 0.8,
'seed': 1956,
Expand Down
2 changes: 1 addition & 1 deletion examples/opf/clients/nyctaxi/model_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"columnCount": 2048,
"globalInhibition": 1,
"inputWidth": 0,
"maxBoost": 1.0,
"boostStrength": 0.0,
"numActiveColumnsPerInhArea": 40,
"seed": 1956,
"spVerbosity": 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,13 +195,18 @@
'synPermActiveInc': 0.05,

'synPermInactiveDec': 0.008,

# 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 columns.
'boostStrength': 0.0,
},

# Controls whether TP is enabled or disabled;
# TP is necessary for making temporal predictions, such as predicting
# the next inputs. Without TP, the model is only capable of
# reconstructing missing sensor inputs (via SP).
'tpEnable' : True,
'tpEnable': True,

'tpParams': {
# TP diagnostic output verbosity control;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,11 @@
'synPermActiveInc': 0.05,

'synPermInactiveDec': 0.008,

# 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 columns.
'boostStrength': 0.0,
},

# Controls whether TP is enabled or disabled;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,11 @@
'synPermActiveInc': 0.05,

'synPermInactiveDec': 0.008,

# 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 columns.
'boostStrength': 0.0,
},

# Controls whether TP is enabled or disabled;
Expand Down
5 changes: 5 additions & 0 deletions examples/opf/experiments/missing_record/base/description.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,11 @@
'synPermActiveInc': 0.1,

'synPermInactiveDec': 0.01,

# 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 columns.
'boostStrength': 10.0,
},

# Controls whether TP is enabled or disabled;
Expand Down
5 changes: 5 additions & 0 deletions examples/opf/experiments/multistep/base/description.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,11 @@
'synPermActiveInc': 0.1,

'synPermInactiveDec': 0.01,

# 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 columns.
'boostStrength': 0.0,
},

# Controls whether TP is enabled or disabled;
Expand Down
Loading

0 comments on commit 5c3edea

Please sign in to comment.