Skip to content
This repository has been archived by the owner on Sep 1, 2023. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuwei Cui committed Dec 21, 2016
2 parents 1876c70 + f8ddfde commit 3d8b77e
Show file tree
Hide file tree
Showing 226 changed files with 459 additions and 728 deletions.
1 change: 0 additions & 1 deletion .githooks/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2013, Numenta, Inc. Unless you have an agreement
Expand Down
1 change: 0 additions & 1 deletion ci/travis/deploy-wheel-to-s3.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2013, Numenta, Inc. Unless you have an agreement
Expand Down
4 changes: 2 additions & 2 deletions ci/travis/script-run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ echo Running script-run-tests.sh...
echo

# Python unit tests and prep for coveralls reporting
${TRAVIS_BUILD_DIR}/scripts/run_nupic_tests.py -u --coverage --failfast || exit
python ${TRAVIS_BUILD_DIR}/scripts/run_nupic_tests.py -u --coverage --failfast || exit

mv ${TRAVIS_BUILD_DIR}/.coverage ${TRAVIS_BUILD_DIR}/.coverage_unit

# Python integration tests and prep for coveralls reporting
${TRAVIS_BUILD_DIR}/scripts/run_nupic_tests.py -i --coverage --failfast || exit
python ${TRAVIS_BUILD_DIR}/scripts/run_nupic_tests.py -i --coverage --failfast || exit

mv ${TRAVIS_BUILD_DIR}/.coverage ${TRAVIS_BUILD_DIR}/.coverage_integration
1 change: 0 additions & 1 deletion examples/bindings/sparse_matrix_how_to.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python

# ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
Expand Down
3 changes: 1 addition & 2 deletions examples/network/core_encoders_demo.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2016, Numenta, Inc. Unless you have an agreement
Expand Down Expand Up @@ -70,7 +69,7 @@ def createNetwork():
"synPermConnected": 0.1,
"synPermActiveInc": 0.0001,
"synPermInactiveDec": 0.0005,
"maxBoost": 1.0,
"boostStrength": 0.0,
}))

#
Expand Down
1 change: 0 additions & 1 deletion examples/network/custom_region_demo.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2015, Numenta, Inc. Unless you have an agreement
Expand Down
3 changes: 1 addition & 2 deletions examples/network/hierarchy_network_demo.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2015, Numenta, Inc. Unless you have an agreement
Expand Down Expand Up @@ -66,7 +65,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
3 changes: 1 addition & 2 deletions examples/network/network_api_demo.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2015-2016, Numenta, Inc. Unless you have an agreement
Expand Down Expand Up @@ -55,7 +54,7 @@
"synPermConnected": 0.1,
"synPermActiveInc": 0.0001,
"synPermInactiveDec": 0.0005,
"maxBoost": 1.0,
"boostStrength": 0.0,
}

# Config field for TPRegion
Expand Down
1 change: 0 additions & 1 deletion examples/network/temporal_anomaly_network_demo.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2015-2016, Numenta, Inc. Unless you have an agreement
Expand Down
1 change: 0 additions & 1 deletion examples/opf/clients/cpu/cpu.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2013, Numenta, Inc. Unless you have an agreement
Expand Down
1 change: 0 additions & 1 deletion examples/opf/clients/hotgym/anomaly/hotgym_anomaly.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2013, Numenta, Inc. Unless you have an agreement
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
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
import csv
import shutil
import datetime
Expand Down Expand Up @@ -44,4 +43,4 @@ def run():


if __name__ == "__main__":
run()
run()
1 change: 0 additions & 1 deletion examples/opf/clients/hotgym/anomaly/one_gym/run.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2013, Numenta, Inc. Unless you have an agreement
Expand Down
1 change: 0 additions & 1 deletion examples/opf/clients/hotgym/prediction/one_gym/cleanup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2013, Numenta, Inc. Unless you have an agreement
Expand Down
1 change: 0 additions & 1 deletion examples/opf/clients/hotgym/prediction/one_gym/run.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2013, Numenta, Inc. Unless you have an agreement
Expand Down
1 change: 0 additions & 1 deletion examples/opf/clients/hotgym/prediction/one_gym/swarm.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2013, Numenta, Inc. Unless you have an agreement
Expand Down
1 change: 0 additions & 1 deletion examples/opf/clients/hotgym/simple/hotgym.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2013, Numenta, Inc. Unless you have an agreement
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
1 change: 0 additions & 1 deletion examples/opf/clients/nyctaxi/nyctaxi_anomaly.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2016, Numenta, Inc. Unless you have an agreement
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
1 change: 0 additions & 1 deletion examples/opf/experiments/classification/makeDatasets.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#! /usr/bin/env python
# ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2013, Numenta, Inc. Unless you have an agreement
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
1 change: 0 additions & 1 deletion examples/opf/experiments/missing_record/make_datasets.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#! /usr/bin/env python
# ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2013, Numenta, Inc. Unless you have an agreement
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
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#! /usr/bin/env python
# ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2013, Numenta, Inc. Unless you have an agreement
Expand Down

0 comments on commit 3d8b77e

Please sign in to comment.