-
Notifications
You must be signed in to change notification settings - Fork 834
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
add support for runtime metrics #2442
add support for runtime metrics #2442
Conversation
Tue Sep 15 19:30:17 UTC 2020 impatient try |
Tue Sep 15 19:30:29 UTC 2020 impatient try |
Tue Sep 15 21:24:57 UTC 2020 impatient try |
Tue Sep 15 21:25:00 UTC 2020 impatient try |
/test integration |
Tue Sep 15 21:28:12 UTC 2020 impatient try |
/retest |
Tue Sep 15 23:28:55 UTC 2020 impatient try |
python/seldon_core/user_model.py
Outdated
@@ -123,6 +123,18 @@ def init_metadata(self) -> Dict: | |||
raise SeldonNotImplementedError("init_metadata is not implemented") | |||
|
|||
|
|||
class SeldonPrediction: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Name should change to something more specific, as this is returned in aggregate, transform_, etc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How would you suggest to name it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe SeldonResponse
or ClientResponse
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Went with ClientResponse
, can still adjust easily
/test integration |
Wed Sep 16 09:47:15 UTC 2020 impatient try |
Wed Sep 16 09:47:16 UTC 2020 impatient try |
Wed Sep 16 09:48:54 UTC 2020 impatient try |
Wed Sep 16 15:52:43 UTC 2020 impatient try |
Wed Sep 16 15:52:59 UTC 2020 impatient try |
/test integration |
Wed Sep 16 15:57:23 UTC 2020 impatient try |
Wed Sep 16 18:30:11 UTC 2020 impatient try |
Wed Sep 16 18:30:17 UTC 2020 impatient try |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, final things as discussed:
- Update ClientResponse -> SeldonResponse
- Add nblink to example and list on notebooks.rst
- Add brief mention on this in the python module docs
- Add point on the existing issue on updating python documentation to add further insights
Thu Sep 17 12:46:09 UTC 2020 impatient try |
Thu Sep 17 12:46:17 UTC 2020 impatient try |
Thu Sep 17 17:40:45 UTC 2020 impatient try |
Thu Sep 17 17:41:16 UTC 2020 impatient try |
Thu Sep 17 17:43:18 UTC 2020 impatient try |
/approve |
@RafalSkolasinski it seems the lint job failed, may need rebase |
New changes are detected. LGTM label has been removed. |
/test integration |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: axsaucedo The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Fri Sep 18 09:35:19 UTC 2020 impatient try |
Fri Sep 18 09:35:29 UTC 2020 impatient try |
Fri Sep 18 09:35:42 UTC 2020 impatient try |
Just so we can track failed tests. Integration: Notebooks: |
@RafalSkolasinski: The following test failed, say
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository. I understand the commands that are listed here. |
/test integration |
Fri Sep 18 09:45:48 UTC 2020 impatient try |
Fri Sep 18 09:45:58 UTC 2020 impatient try |
Fri Sep 18 09:46:06 UTC 2020 impatient try |
What this PR does / why we need it:
Adds support for thread/process safe runtime metrics / tags.
Which issue(s) this PR fixes:
Closes #1735
Special notes for your reviewer:
Introduced
seldon_core.user_model.SeldonResponse
class that can be used as output ofpredict
and other methods on User Models in order to set runtime metrics and tags.For example
Does this PR introduce a user-facing change?: