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

NUP-2397: rename TP* to TM* #3555

Merged
merged 14 commits into from
Apr 26, 2017

Conversation

marionleborgne
Copy link
Member

@marionleborgne marionleborgne commented Apr 18, 2017

Fixes #3556

Name changes:

  • Rename TPRegion to TMRegion
  • Rename TP to BacktrackingTM
  • Rename TP10X* to BacktrackingTMCPP
  • Rename TPShim* to TMShim*
  • Rename generic usage of TP / temporal pooling to TM / temporal memory.

@marionleborgne
Copy link
Member Author

cc @rhyolight @scottpurdy

@rhyolight
Copy link
Member

@marionleborgne Will review today

Copy link
Member

@rhyolight rhyolight left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is very thorough, good job. I found a few things, nothing major.

@@ -674,7 +674,7 @@
"outputs": [],
"source": [
"# Step 1: create Temporal Pooler instance with appropriate parameters\n",
"tp = TP(numberOfCols=50, cellsPerColumn=2,\n",
"tm = TP(numberOfCols=50, cellsPerColumn=2,\n",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this constructor call still valid?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think so (with BacktrackignTM). I fixed the notebook, and everything executes properly now.

seed=SEED, verbosity=VERBOSITY,
checkSynapseConsistency=True,
pamLength=1000)
cppTp = BacktrackingTMCPP(numberOfCols=numCols,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change cppTp ==> cppTm

globalDecay=globalDecay, burnIn=1,
seed=SEED, verbosity=VERBOSITY,
pamLength=1000)
pyTp = BacktrackingTM(numberOfCols=numCols,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change pyTp ==> pyTm

@@ -229,7 +229,7 @@ def _test():
1 0.3 0 0 0 1 1
1 0.45 0 1 1 1 1

TruePos(TP) 1 2 2 3 3
TruePos(TM) 1 2 2 3 3
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This TM should not be replaced because it means TruePos.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I missed that

@@ -238,7 +238,7 @@ def _test():
The ROC curve is a plot of FPR on the x-axis and TPR on the y-axis. Basically,
one can pick any operating point along this curve to run, the operating point
determined by which threshold you want to use. By changing the threshold, you
tradeoff TP's for FPs.
tradeoff TM's for FPs.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

@marionleborgne
Copy link
Member Author

@rhyolight thanks for the feedback. I addressed your comments.

@rhyolight
Copy link
Member

@marionleborgne Thanks, you'll need to merge.

Marion Le Borgne added 3 commits April 26, 2017 11:22
…97-rename-tp-to-tm

# Resolved conflicts with:
#	docs/examples/opf/model_params.py
#	examples/opf/experiments/anomaly/spatial/10field_many_balanced/UNDER_DEVELOPMENT
#	examples/opf/experiments/anomaly/spatial/10field_many_balanced/description.py
#	examples/opf/experiments/anomaly/temporal/noisy_saw/UNDER_DEVELOPMENT
#	examples/opf/experiments/anomaly/temporal/noisy_saw/description.py
#	examples/opf/experiments/anomaly/temporal/saw_200_category/UNDER_DEVELOPMENT
#	examples/opf/experiments/anomaly/temporal/saw_200_category/description.py
#	tests/unit/nupic/frameworks/opf/htmpredictionmodel_classifier_helper_test.py
@marionleborgne
Copy link
Member Author

@rhyolight I merged. It's ready for you to review again.

@rhyolight rhyolight merged commit 4bd9e6d into numenta:master Apr 26, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants