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

Removed predictedField from HTMPredictionModel constructor #3600

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions src/nupic/frameworks/opf/htm_prediction_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,19 @@ def __repr__(self):
class HTMPredictionModel(Model):
"""

This model is for temporal predictions multiple steps ahead.
This model is for temporal predictions multiple steps ahead. After creating
this model, you must call
:meth:`~nupic.frameworks.opf.model.Model.enableInference` to specify a
predicted field, like this:

:param inferenceType: (:class:`~nupic.frameworks.opf.opf_utils.InferenceType`)
.. code-block:: python

model.enableInference({"predictedField": "myPredictedField"})

:param predictedField: (string) The field to predict for multistep prediction.
Where ``myPredictedField`` is the field name in your data input that should be
predicted.

:param inferenceType: (:class:`~nupic.frameworks.opf.opf_utils.InferenceType`)

:param sensorParams: (dict) specifying the sensor parameters.

Expand Down Expand Up @@ -157,7 +165,6 @@ class HTMPredictionModel(Model):
def __init__(self,
sensorParams={},
inferenceType=InferenceType.TemporalNextStep,
predictedField=None,
spEnable=True,
spParams={},

Expand Down