Uh oh!
There was an error while loading. Please reload this page.
fix(automl): pass params to underlying client - #9794
Conversation
busunkim96
left a comment
There was a problem hiding this comment.
LGTM with some nits. Is this something to be watching out for every time there's an update to AutoML?
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-Authored-By: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com>
sirtorry
commented
Nov 14, 2019
| Additional domain-specific parameters, any string must be up to | ||
| 25000 characters long. | ||
| ``feature_importance`` - (boolean) Whether | ||
| [feature\_importance][[google.cloud.automl.v1beta1.TablesModelColumnInfo.feature\_importance] |
There was a problem hiding this comment.
Non-blocking: curious if there is documentation / spec about how to how to write docstring with links.
E.g.,
- why
\infeature\_importanceis needed, - what does
(-s)mean, and - seems different from markdown, [text][[link] instead of [text][link] is used.
There was a problem hiding this comment.
This formatting is from the proto comments. I believe it's some flavor of markdown that makes the comments render nicely on cloud.google.com. See https://github.com/googleapis/googleapis/tree/master/google/cloud/automl/v1 and https://cloud.google.com/automl/docs/reference/rpc/google.cloud.automl.v1.
When you need to add docstrings, please follow the Google Python Style Guide
helinwang
commented
Nov 14, 2019
LGTM |
helinwang
commented
Nov 14, 2019
Regarding "Is this something to be watching out for every time there's an update to AutoML?". |
busunkim96
commented
Nov 14, 2019
@helinwang Would it be possible to write some tests to help catch these incompatibilities? |
@busunkim96 I think it's hard to do because: Do you know if there is plan to mirrow this repo into piper? I think it will solve this problem. We can setup integration test that reference the piper mirror code with TAP. |
sirtorry
commented
Nov 14, 2019
@busunkim96 please merge if it looks good to you |
busunkim96
commented
Nov 14, 2019
You're free to setup a mirror if you'd like, but that is not something the client libraries team is currently staffed to do. I'll make sure to tag both of you in future PRs so you can manually inspect changes. |
busunkim96
commented
Nov 14, 2019
@sirtorry Could you do |
helinwang
commented
Nov 14, 2019
Thanks, @busunkim96 . |
busunkim96
commented
Nov 14, 2019
I missed this earlier, but it looks like the unit tests are failing. |
helinwang
left a comment
There was a problem hiding this comment.
LGTM. Torry could you update the unit test?
The test is failing with errors like:
value = AssertionError("expected call not found.\nExpected: predict('my_model', {'row'..., {'row': {'values': [{'string_value': '1'}, {'string_value': '2'}]}}, None)",)
from_value = None
def raise_from(value, from_value):
> raise value
E AssertionError: expected call not found.
E Expected: predict('my_model', {'row': {'values': [{'string_value': '1'}, {'string_value': '2'}]}})
E Actual: predict('my_model', {'row': {'values': [{'string_value': '1'}, {'string_value': '2'}]}}, None)
could also add unit tests for non-empty param passing if y'all want |
helinwang
commented
Nov 15, 2019
I think that's fine, since the method just forward param to predict. |
passes params from tables_client to gapic prediction_service_client