Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates swarming, some region code to snake_case (part 6) #3627

Merged
merged 7 commits into from
May 16, 2017
4 changes: 2 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ nupic
│   ├── PluggableEncoderSensor.py [TODO]
│   ├── RecordSensor.py [TODO]
│   ├── RecordSensorFilters
│   │   ├── AddNoise.py [TODO]
│   │   └── ModifyFields.py [TODO]
│   │   ├── add_noise.py [TODO]
│   │   └── modify_fields.py [TODO]
│   ├── SDRClassifierRegion.py [TODO]
│   ├── SPRegion.py [TODO]
│   ├── SVMClassifierNode.py [TODO]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
description.py file by replacing $XXXXXXXX tokens with desired values.

This description.py file was generated by:
'~/nupic/eng/lib/python2.6/site-packages/nupic/frameworks/opf/expGenerator/ExpGenerator.py'
'~/nupic/eng/lib/python2.6/site-packages/nupic/frameworks/opf/expGenerator/experiment_generator.py'
"""

from nupic.frameworks.opf.exp_description_api import ExperimentDescriptionAPI
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
description.py file by replacing $XXXXXXXX tokens with desired values.

This description.py file was generated by:
'~/nupic/eng/lib/python2.6/site-packages/nupic/frameworks/opf/expGenerator/ExpGenerator.py'
'~/nupic/eng/lib/python2.6/site-packages/nupic/frameworks/opf/expGenerator/experiment_generator.py'
"""

from nupic.frameworks.opf.exp_description_api import ExperimentDescriptionAPI
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
description.py file by replacing $XXXXXXXX tokens with desired values.

This description.py file was generated by:
'~/nupic/eng/lib/python2.6/site-packages/nupic/frameworks/opf/expGenerator/ExpGenerator.py'
'~/nupic/eng/lib/python2.6/site-packages/nupic/frameworks/opf/expGenerator/experiment_generator.py'
"""

from nupic.frameworks.opf.exp_description_api import ExperimentDescriptionAPI
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
description.py file by replacing $XXXXXXXX tokens with desired values.

This description.py file was generated by:
'~/nupic/eng/lib/python2.6/site-packages/nupic/frameworks/opf/expGenerator/ExpGenerator.py'
'~/nupic/eng/lib/python2.6/site-packages/nupic/frameworks/opf/expGenerator/experiment_generator.py'
"""

from nupic.frameworks.opf.exp_description_api import ExperimentDescriptionAPI
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
description.py file by replacing $XXXXXXXX tokens with desired values.

This description.py file was generated by:
'~/nupic/eng/lib/python2.6/site-packages/nupic/frameworks/opf/expGenerator/ExpGenerator.py'
'~/nupic/eng/lib/python2.6/site-packages/nupic/frameworks/opf/expGenerator/experiment_generator.py'
"""

from nupic.frameworks.opf.exp_description_api import ExperimentDescriptionAPI
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
description.py file by replacing $XXXXXXXX tokens with desired values.

This description.py file was generated by:
'~/nupic/eng/lib/python2.6/site-packages/nupic/frameworks/opf/expGenerator/ExpGenerator.py'
'~/nupic/eng/lib/python2.6/site-packages/nupic/frameworks/opf/expGenerator/experiment_generator.py'
"""

from nupic.frameworks.opf.exp_description_api import ExperimentDescriptionAPI
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
description.py file by replacing $XXXXXXXX tokens with desired values.

This description.py file was generated by:
'~/nupic/eng/lib/python2.6/site-packages/nupic/frameworks/opf/expGenerator/ExpGenerator.py'
'~/nupic/eng/lib/python2.6/site-packages/nupic/frameworks/opf/expGenerator/experiment_generator.py'
"""

from nupic.frameworks.opf.exp_description_api import ExperimentDescriptionAPI
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
description.py file by replacing $XXXXXXXX tokens with desired values.

This description.py file was generated by:
'~/nupic/eng/lib/python2.6/site-packages/nupic/frameworks/opf/expGenerator/ExpGenerator.py'
'~/nupic/eng/lib/python2.6/site-packages/nupic/frameworks/opf/expGenerator/experiment_generator.py'
"""

from nupic.frameworks.opf.exp_description_api import ExperimentDescriptionAPI
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
description.py file by replacing $XXXXXXXX tokens with desired values.

This description.py file was generated by:
'~/nupic/eng/lib/python2.6/site-packages/nupic/frameworks/opf/expGenerator/ExpGenerator.py'
'~/nupic/eng/lib/python2.6/site-packages/nupic/frameworks/opf/expGenerator/experiment_generator.py'
"""

from nupic.frameworks.opf.exp_description_api import ExperimentDescriptionAPI
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
description.py file by replacing $XXXXXXXX tokens with desired values.

This description.py file was generated by:
'~/nupic/eng/lib/python2.6/site-packages/nupic/frameworks/opf/expGenerator/ExpGenerator.py'
'~/nupic/eng/lib/python2.6/site-packages/nupic/frameworks/opf/expGenerator/experiment_generator.py'
"""

from nupic.frameworks.opf.exp_description_api import ExperimentDescriptionAPI
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
description.py file by replacing $XXXXXXXX tokens with desired values.

This description.py file was generated by:
'~/nupic/eng/lib/python2.6/site-packages/nupic/frameworks/opf/expGenerator/ExpGenerator.py'
'~/nupic/eng/lib/python2.6/site-packages/nupic/frameworks/opf/expGenerator/experiment_generator.py'
"""

from nupic.frameworks.opf.exp_description_api import ExperimentDescriptionAPI
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
description.py file by replacing $XXXXXXXX tokens with desired values.

This description.py file was generated by:
'~/nupic/eng/lib/python2.6/site-packages/nupic/frameworks/opf/expGenerator/ExpGenerator.py'
'~/nupic/eng/lib/python2.6/site-packages/nupic/frameworks/opf/expGenerator/experiment_generator.py'
"""

from nupic.frameworks.opf.exp_description_api import ExperimentDescriptionAPI
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
description.py file by replacing $XXXXXXXX tokens with desired values.

This description.py file was generated by:
'~/nupic/eng/lib/python2.6/site-packages/nupic/frameworks/opf/expGenerator/ExpGenerator.py'
'~/nupic/eng/lib/python2.6/site-packages/nupic/frameworks/opf/expGenerator/experiment_generator.py'
"""

from nupic.frameworks.opf.exp_description_api import ExperimentDescriptionAPI
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
description.py file by replacing $XXXXXXXX tokens with desired values.

This description.py file was generated by:
'~/nupic/eng/lib/python2.6/site-packages/nupic/frameworks/opf/expGenerator/ExpGenerator.py'
'~/nupic/eng/lib/python2.6/site-packages/nupic/frameworks/opf/expGenerator/experiment_generator.py'
"""

from nupic.frameworks.opf.exp_description_api import ExperimentDescriptionAPI
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
description.py file by replacing $XXXXXXXX tokens with desired values.

This description.py file was generated by:
'~/nupic/eng/lib/python2.6/site-packages/nupic/frameworks/opf/expGenerator/ExpGenerator.py'
'~/nupic/eng/lib/python2.6/site-packages/nupic/frameworks/opf/expGenerator/experiment_generator.py'
"""

from nupic.frameworks.opf.exp_description_api import ExperimentDescriptionAPI
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
description.py file by replacing $XXXXXXXX tokens with desired values.

This description.py file was generated by:
'~/nupic/eng/lib/python2.6/site-packages/nupic/frameworks/opf/expGenerator/ExpGenerator.py'
'~/nupic/eng/lib/python2.6/site-packages/nupic/frameworks/opf/expGenerator/experiment_generator.py'
"""

from nupic.frameworks.opf.exp_description_api import ExperimentDescriptionAPI
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
description.py file by replacing $XXXXXXXX tokens with desired values.

This description.py file was generated by:
'~/nupic/eng/lib/python2.6/site-packages/nupic/frameworks/opf/expGenerator/ExpGenerator.py'
'~/nupic/eng/lib/python2.6/site-packages/nupic/frameworks/opf/expGenerator/experiment_generator.py'
"""

from nupic.frameworks.opf.exp_description_api import ExperimentDescriptionAPI
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
description.py file by replacing $XXXXXXXX tokens with desired values.

This description.py file was generated by:
'~/nupic/eng/lib/python2.6/site-packages/nupic/frameworks/opf/expGenerator/ExpGenerator.py'
'~/nupic/eng/lib/python2.6/site-packages/nupic/frameworks/opf/expGenerator/experiment_generator.py'
"""

from nupic.frameworks.opf.exp_description_api import ExperimentDescriptionAPI
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
description.py file by replacing $XXXXXXXX tokens with desired values.

This description.py file was generated by:
'~/nupic/eng/lib/python2.6/site-packages/nupic/frameworks/opf/expGenerator/ExpGenerator.py'
'~/nupic/eng/lib/python2.6/site-packages/nupic/frameworks/opf/expGenerator/experiment_generator.py'
"""

from nupic.frameworks.opf.exp_description_api import ExperimentDescriptionAPI
Expand Down
2 changes: 1 addition & 1 deletion examples/opf/experiments/multistep/base/description.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
description.py file by replacing $XXXXXXXX tokens with desired values.

This description.py file was generated by:
'~/nupic/eng/lib/python2.6/site-packages/nupic/frameworks/opf/expGenerator/ExpGenerator.py'
'~/nupic/eng/lib/python2.6/site-packages/nupic/frameworks/opf/expGenerator/experiment_generator.py'
"""

from nupic.frameworks.opf.exp_description_api import ExperimentDescriptionAPI
Expand Down
38 changes: 19 additions & 19 deletions examples/opf/experiments/multistep/base/permutations_simple_3.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,33 +27,33 @@
"""
import os
from pkg_resources import resources_filename
from nupic.swarming.permutationhelpers import *
from nupic.swarming.permutation_helpers import *

# The name of the field being predicted. Any allowed permutation MUST contain
# the prediction field.
# (generated from PREDICTION_FIELD)
predictedField = 'field2'

permutations = {
# Encoder permutation choices
# Encoder permutation choices
# Example:
#
# '__gym_encoder' : PermuteEncoder('gym', 'SDRCategoryEncoder', w=7,
# n=100),
#
# '__address_encoder' : PermuteEncoder('address', 'SDRCategoryEncoder',
#
# '__address_encoder' : PermuteEncoder('address', 'SDRCategoryEncoder',
# w=7, n=100),
#
# '__timestamp_timeOfDay_encoder' : PermuteEncoder('timestamp',
#
# '__timestamp_timeOfDay_encoder' : PermuteEncoder('timestamp',
# 'DateEncoder.timeOfDay', w=7, radius=PermuteChoices([1, 8])),
#
# '__timestamp_dayOfWeek_encoder' : PermuteEncoder('timestamp',
#
# '__timestamp_dayOfWeek_encoder' : PermuteEncoder('timestamp',
# 'DateEncoder.dayOfWeek', w=7, radius=PermuteChoices([1, 3])),
#
# '__consumption_encoder' : PermuteEncoder('consumption', 'ScalarEncoder',
# w=7, n=PermuteInt(13, 500, 20), minval=0,
#
# '__consumption_encoder' : PermuteEncoder('consumption', 'ScalarEncoder',
# w=7, n=PermuteInt(13, 500, 20), minval=0,
# maxval=PermuteInt(100, 300, 25)),
#
#
# (generated from PERM_ENCODER_CHOICES)
'predictedField': 'field2',
'predictionSteps': [1,3],
Expand All @@ -63,10 +63,10 @@
'dataSource': 'file://%s' % (resource_filename("nupic", relativePath)),

'__field2_encoder' : PermuteEncoder(fieldName='field2',
clipInput=True, minval = 0, maxval=50,
encoderClass='ScalarEncoder',
clipInput=True, minval = 0, maxval=50,
encoderClass='ScalarEncoder',
w=21, n=PermuteChoices([500])),

}


Expand All @@ -91,16 +91,16 @@ def permutationFilter(perm):
""" This function can be used to selectively filter out specific permutation
combinations. It is called by RunPermutations for every possible permutation
of the variables in the permutations dict. It should return True for valid a
combination of permutation values and False for an invalid one.
combination of permutation values and False for an invalid one.

Parameters:
---------------------------------------------------------
perm: dict of one possible combination of name:value
pairs chosen from permutations.
"""

# An example of how to use this
#if perm['__consumption_encoder']['maxval'] > 300:
# return False;
#
#
return True
2 changes: 1 addition & 1 deletion examples/opf/experiments/multistep/hotgym/description.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
description.py file by replacing $XXXXXXXX tokens with desired values.

This description.py file was generated by:
'~/nupic/eng/lib/python2.6/site-packages/nupic/frameworks/opf/expGenerator/ExpGenerator.py'
'~/nupic/eng/lib/python2.6/site-packages/nupic/frameworks/opf/expGenerator/experiment_generator.py'
"""

from nupic.frameworks.opf.exp_description_api import ExperimentDescriptionAPI
Expand Down
4 changes: 2 additions & 2 deletions examples/opf/experiments/multistep/hotgym/permutations.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
permutations.py file by replacing $XXXXXXXX tokens with desired values.

This permutations.py file was generated by:
'~/nupic/eng/lib/python2.6/site-packages/nupic/frameworks/opf/expGenerator/ExpGenerator.py'
'~/nupic/eng/lib/python2.6/site-packages/nupic/frameworks/opf/expGenerator/experiment_generator.py'
"""


from nupic.swarming.permutationhelpers import *
from nupic.swarming.permutation_helpers import *

# The name of the field being predicted. Any allowed permutation MUST contain
# the prediction field.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
'~/nupic/eng/lib/python2.6/site-packages/nupic/frameworks/opf/expGenerator/ExpGenerator.pyc'
"""

from nupic.swarming.permutationhelpers import *
from nupic.swarming.permutation_helpers import *

# The name of the field being predicted. Any allowed permutation MUST contain
# the prediction field.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
description.py file by replacing $XXXXXXXX tokens with desired values.

This description.py file was generated by:
'~/nupic/eng/lib/python2.6/site-packages/nupic/frameworks/opf/expGenerator/ExpGenerator.py'
'~/nupic/eng/lib/python2.6/site-packages/nupic/frameworks/opf/expGenerator/experiment_generator.py'
"""

from nupic.frameworks.opf.exp_description_api import ExperimentDescriptionAPI
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
description.py file by replacing $XXXXXXXX tokens with desired values.

This description.py file was generated by:
'~/nupic/eng/lib/python2.6/site-packages/nupic/frameworks/opf/expGenerator/ExpGenerator.py'
'~/nupic/eng/lib/python2.6/site-packages/nupic/frameworks/opf/expGenerator/experiment_generator.py'
"""

from nupic.frameworks.opf.exp_description_api import ExperimentDescriptionAPI
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
description.py file by replacing $XXXXXXXX tokens with desired values.

This description.py file was generated by:
'~/nupic/eng/lib/python2.6/site-packages/nupic/frameworks/opf/expGenerator/ExpGenerator.py'
'~/nupic/eng/lib/python2.6/site-packages/nupic/frameworks/opf/expGenerator/experiment_generator.py'
"""

from nupic.frameworks.opf.exp_description_api import ExperimentDescriptionAPI
Expand Down
Loading