GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(automl): pass params to underlying client by sirtorry · Pull Request #9794 · googleapis/google-cloud-python

Conversation

@sirtorry

@sirtorry sirtorry commented Nov 14, 2019

Copy link
Copy Markdown
Contributor

passes params from tables_client to gapic prediction_service_client

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@sirtorry
pass params
a38ef2d
@sirtorry
sirtorry requested a review from busunkim96 as a code owner November 14, 2019 00:48
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Nov 14, 2019
busunkim96
busunkim96 approved these changes Nov 14, 2019
View reviewed changes

@busunkim96 busunkim96 left a comment

Copy link
Copy Markdown
Contributor

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.

LGTM with some nits. Is this something to be watching out for every time there's an update to AutoML?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread automl/google/cloud/automl_v1beta1/tables/tables_client.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread automl/google/cloud/automl_v1beta1/tables/tables_client.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

@sirtorry @busunkim96
Update automl/google/cloud/automl_v1beta1/tables/tables_client.py
7eedae1
Co-Authored-By: Bu Sun Kim <[email protected]>
@sirtorry

sirtorry commented Nov 14, 2019

Copy link
Copy Markdown
Contributor Author

LGTM with some nits. Is this something to be watching out for every time there's an update to AutoML?

Looking at previous PRs, there's certainly a precedence at this point. #9779 #9491 are examples.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

helinwang
helinwang reviewed Nov 14, 2019
View reviewed changes
Comment thread automl/google/cloud/automl_v1beta1/tables/tables_client.py Outdated
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]

@helinwang helinwang Nov 14, 2019 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

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.

Non-blocking: curious if there is documentation / spec about how to how to write docstring with links.
E.g.,

  • why \ in feature\_importance is needed,
  • what does (-s) mean, and
  • seems different from markdown, [text][[link] instead of [text][link] is used.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@busunkim96 busunkim96 Nov 14, 2019

Copy link
Copy Markdown
Contributor

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.

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

helinwang reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@helinwang

helinwang commented Nov 14, 2019

Copy link
Copy Markdown
Contributor

LGTM

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@helinwang

helinwang commented Nov 14, 2019

Copy link
Copy Markdown
Contributor

Regarding "Is this something to be watching out for every time there's an update to AutoML?".
Any recommendation of how to keep backend and Python SDK in-sync?
The currently process is manually trying the best to make sure it's in-sync.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@busunkim96

busunkim96 commented Nov 14, 2019

Copy link
Copy Markdown
Contributor

@helinwang Would it be possible to write some tests to help catch these incompatibilities?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@helinwang

helinwang commented Nov 14, 2019 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

@busunkim96 I think it's hard to do because:
New backend feature is added in piper first. The test for these features should be added during the feature development, so they have to be in piper too. If we add the test in Github, when we are adding the test, we already know the new feature is coming, so the test does not help catching new features. It only catches regressions - still good to have, but does not solve this problem.
However, Python SDK lives in Github, not piper. piper code can't reference Python SDK thus have no way of testing it.
Does it makes sense?

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

sirtorry added 3 commits November 13, 2019 18:25
@sirtorry
clean up spec
1083d89
@sirtorry
resolve merge conflicts
42a6854
@sirtorry
lint
94089c3
@sirtorry

sirtorry commented Nov 14, 2019

Copy link
Copy Markdown
Contributor Author

@busunkim96 please merge if it looks good to you

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@busunkim96

busunkim96 commented Nov 14, 2019

Copy link
Copy Markdown
Contributor

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@busunkim96

busunkim96 commented Nov 14, 2019

Copy link
Copy Markdown
Contributor

@sirtorry Could you do nox -s blacken to appease the linter?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@busunkim96
chore: blacken
e684bea
@helinwang

helinwang commented Nov 14, 2019

Copy link
Copy Markdown
Contributor

Thanks, @busunkim96 .

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@busunkim96

busunkim96 commented Nov 14, 2019

Copy link
Copy Markdown
Contributor

I missed this earlier, but it looks like the unit tests are failing.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

helinwang
helinwang approved these changes Nov 15, 2019
View reviewed changes

@helinwang helinwang left a comment

Copy link
Copy Markdown
Contributor

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.

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)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@sirtorry
update tests
7d9e117
@sirtorry

sirtorry commented Nov 15, 2019 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

could also add unit tests for non-empty param passing if y'all want

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@helinwang

helinwang commented Nov 15, 2019

Copy link
Copy Markdown
Contributor

I think that's fine, since the method just forward param to predict.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

busunkim96 added 2 commits November 15, 2019 14:17
@busunkim96
blacken
6ef675e
@busunkim96
chore: remove trailing space
3e7c94d
@busunkim96
busunkim96 merged commit 972e5b4 into googleapis:master Nov 15, 2019
sirtorry added a commit that referenced this pull request Nov 15, 2019
@sirtorry
Revert "fix(automl): pass params to underlying client (#9794)"
1730bd8
This reverts commit 972e5b4.
This was referenced Jan 29, 2020
chore(bigquery): bump copyright year to 2020, tweak docstring formatting (via synth) #10225
Merged
[CHANGE ME] Re-generated container to pick up changes in the API or client library generator. #10256
Closed
@yoshi-automation yoshi-automation mentioned this pull request Jan 30, 2020
[CHANGE ME] Re-generated datastore to pick up changes in the API or client library generator. #10261
Closed
parthea pushed a commit that referenced this pull request Oct 21, 2023
@sirtorry @busunkim96
fix(automl): pass params to underlying client (#9794)
b3ebd13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

2 more reviewers
@busunkim96 busunkim96 busunkim96 approved these changes
@helinwang helinwang helinwang approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@sirtorry @helinwang @busunkim96 @googlebot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.