Skip to content

Commit 5c3edea

Browse files
authored
Merge pull request #3411 from ywcui1990/boostingRes
[RES-411] Implement New SP Boosting Rules in NuPIC
2 parents 380bf1b + 70ea394 commit 5c3edea

File tree

32 files changed

+447
-518
lines changed

32 files changed

+447
-518
lines changed

examples/network/core_encoders_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def createNetwork():
7070
"synPermConnected": 0.1,
7171
"synPermActiveInc": 0.0001,
7272
"synPermInactiveDec": 0.0005,
73-
"maxBoost": 1.0,
73+
"boostStrength": 0.0,
7474
}))
7575

7676
#

examples/network/hierarchy_network_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"synPermConnected": 0.1,
6767
"synPermActiveInc": 0.0001,
6868
"synPermInactiveDec": 0.0005,
69-
"maxBoost": 1.0}
69+
"boostStrength": 0.0}
7070

7171
# Parameter dict for TPRegion
7272
TP_PARAMS = {"verbosity": _VERBOSITY,

examples/network/network_api_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"synPermConnected": 0.1,
5656
"synPermActiveInc": 0.0001,
5757
"synPermInactiveDec": 0.0005,
58-
"maxBoost": 1.0,
58+
"boostStrength": 0.0,
5959
}
6060

6161
# Config field for TPRegion

examples/opf/clients/hotgym/anomaly/model_params.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,10 @@
132132

133133
'synPermInactiveDec': 0.0005,
134134

135-
'maxBoost': 1.0,
135+
# boostStrength controls the strength of boosting. It should be a
136+
# a number greater or equal than 0.0. No boosting is applied if
137+
# boostStrength=0.0. Boosting encourages efficient usage of columns.
138+
'boostStrength': 0.0,
136139
},
137140

138141
# Controls whether TP is enabled or disabled;

examples/opf/clients/hotgym/anomaly/one_gym/model_params/rec_center_hourly_model_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
'spParams': { 'columnCount': 2048,
5353
'globalInhibition': 1,
5454
'inputWidth': 0,
55-
'maxBoost': 2.0,
55+
'boostStrength': 2.0,
5656
'numActiveColumnsPerInhArea': 40,
5757
'potentialPct': 0.8,
5858
'seed': 1956,

examples/opf/clients/nyctaxi/model_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
"columnCount": 2048,
7474
"globalInhibition": 1,
7575
"inputWidth": 0,
76-
"maxBoost": 1.0,
76+
"boostStrength": 0.0,
7777
"numActiveColumnsPerInhArea": 40,
7878
"seed": 1956,
7979
"spVerbosity": 0,

examples/opf/experiments/anomaly/temporal/simple/description.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,13 +195,18 @@
195195
'synPermActiveInc': 0.05,
196196

197197
'synPermInactiveDec': 0.008,
198+
199+
# boostStrength controls the strength of boosting. It should be a
200+
# a number greater or equal than 0.0. No boosting is applied if
201+
# boostStrength=0.0. Boosting encourages efficient usage of columns.
202+
'boostStrength': 0.0,
198203
},
199204

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

206211
'tpParams': {
207212
# TP diagnostic output verbosity control;

examples/opf/experiments/classification/base_category/description.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,11 @@
190190
'synPermActiveInc': 0.05,
191191

192192
'synPermInactiveDec': 0.008,
193+
194+
# boostStrength controls the strength of boosting. It should be a
195+
# a number greater or equal than 0.0. No boosting is applied if
196+
# boostStrength=0.0. Boosting encourages efficient usage of columns.
197+
'boostStrength': 0.0,
193198
},
194199

195200
# Controls whether TP is enabled or disabled;

examples/opf/experiments/classification/base_scalar/description.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,11 @@
192192
'synPermActiveInc': 0.05,
193193

194194
'synPermInactiveDec': 0.008,
195+
196+
# boostStrength controls the strength of boosting. It should be a
197+
# a number greater or equal than 0.0. No boosting is applied if
198+
# boostStrength=0.0. Boosting encourages efficient usage of columns.
199+
'boostStrength': 0.0,
195200
},
196201

197202
# Controls whether TP is enabled or disabled;

examples/opf/experiments/missing_record/base/description.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,11 @@
212212
'synPermActiveInc': 0.1,
213213

214214
'synPermInactiveDec': 0.01,
215+
216+
# boostStrength controls the strength of boosting. It should be a
217+
# a number greater or equal than 0.0. No boosting is applied if
218+
# boostStrength=0.0. Boosting encourages efficient usage of columns.
219+
'boostStrength': 10.0,
215220
},
216221

217222
# Controls whether TP is enabled or disabled;

0 commit comments

Comments
 (0)