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

Updated OPF Metric API docs #3638

Merged
merged 6 commits into from
May 22, 2017
Merged

Updated OPF Metric API docs #3638

merged 6 commits into from
May 22, 2017

Conversation

rhyolight
Copy link
Member

fixes #3637

:param prediction:
The value predicted by the network at the current timestep

:param record: ?
Copy link
Member Author

Choose a reason for hiding this comment

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

@scottpurdy Can you help me out with this?

Copy link
Contributor

Choose a reason for hiding this comment

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

This is the input record as fed to the Model.compute method by the user. The typical usage is to feed a record to that method and get a ModelResult. Then you pass ModelResult.rawInput into this function as the record parameter.

information relevant to the given metric, for example the number of timesteps represented in
the current measurement. all stats are implementation defined, and "stats" can be None

Metric name is defined by the MetricIface implementation. ``stats`` is
Copy link
Member Author

Choose a reason for hiding this comment

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

Metric name is defined by the MetricIface implementation

@scottpurdy Does this statement make sense? I don't see how MetricIface defines a metric name.

Copy link
Contributor

Choose a reason for hiding this comment

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

I have the same confusion as you. What is metric name? It looks safe to me to remove any reference to a metric name since I don't think there is one that is relevant to this function.

The return value is also unclear since you say it is an object but what kind? Is it an instance of a specific class or a dict? This is important because it determines whether you do returnValue.value, returnValue["value"], or returnValue.value() to get the value form the returned object.

@rhyolight
Copy link
Member Author

@scottpurdy ready

@rhyolight rhyolight merged commit cc83ad2 into numenta:master May 22, 2017
@rhyolight rhyolight deleted the metric-docs branch May 22, 2017 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update Metrics API docs
2 participants