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 — automl beta by sirtorry · Pull Request #1575 · GoogleCloudPlatform/python-docs-samples

Conversation

@sirtorry

@sirtorry sirtorry commented Jul 17, 2018

Copy link
Copy Markdown
Contributor

add automl samples and tests

Sorry, something went wrong.

Uh oh!

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

All reactions
@sirtorry
automl initial commit
13401f8
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jul 17, 2018
@sirtorry
lint
5828ce4
@sirtorry sirtorry changed the title automl initial commit automl beta Jul 17, 2018
sirtorry added 3 commits July 17, 2018 13:34
@sirtorry
fix line limit
41c9d64
@sirtorry
fix import groupings
34296ee
@sirtorry
i know my abc
76c10c2
@sirtorry
sirtorry force-pushed the automl branch 4 times, most recently from 23d0f49 to 8153edf Compare July 19, 2018 21:21
@sirtorry
sirtorry requested a review from happyhuman July 19, 2018 21:33
crwilcox
crwilcox reviewed Jul 19, 2018
View reviewed changes
Comment thread translate/automl/automl_translation_model.py Outdated

@crwilcox crwilcox Jul 19, 2018

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.

Can you explain why you need to be able to get the operation status? If you think there is a legitimate use case for this we may want to consider adding a method on the client object for this, since you are relying on an internal object here.

Sorry, something went wrong.

Uh oh!

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

All reactions

@sirtorry sirtorry Jul 19, 2018

Copy link
Copy Markdown
Contributor Author

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.

these training jobs can be long running, up to a day.

Sorry, something went wrong.

Uh oh!

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

All reactions

@crwilcox crwilcox Jul 19, 2018

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.

Alright. I am going to create an issue on the library for us to consider this as a change. Thanks!

Sorry, something went wrong.

Uh oh!

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

All reactions

@crwilcox crwilcox Jul 19, 2018

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.

I am not 100% sure but I think response.operation.refresh() will give the current status.

Sorry, something went wrong.

Uh oh!

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

All reactions

@sirtorry sirtorry Jul 20, 2018

Copy link
Copy Markdown
Contributor Author

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.

what would response be in response.operation.refresh()?

Sorry, something went wrong.

Uh oh!

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

All reactions
@sirtorry
add requirements.txt
b31572d
@sirtorry
sirtorry force-pushed the automl branch from 8153edf to b31572d Compare July 19, 2018 22:38
happyhuman
happyhuman reviewed Jul 19, 2018
View reviewed changes

@happyhuman happyhuman 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.

I have only reviewed automl_natural_language_dataset.py so far. Most of my comments are applicable to all sample functions and in other python files too, so I avoided to duplicate them. I will review other files soon.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread language/automl/automl_natural_language_dataset.py Outdated

@happyhuman happyhuman Jul 19, 2018

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.

I was told we are supposed to start using LLC instead of Inc from now on.

Sorry, something went wrong.

Uh oh!

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

All reactions

@sirtorry sirtorry Jul 20, 2018

Copy link
Copy Markdown
Contributor Author

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.

done

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread language/automl/automl_natural_language_dataset.py Outdated

@happyhuman happyhuman Jul 19, 2018

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.

Do we need region tags for imports too? I did not know.

Sorry, something went wrong.

Uh oh!

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

All reactions

@sirtorry sirtorry Jul 20, 2018

Copy link
Copy Markdown
Contributor Author

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.

removed

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread language/automl/automl_natural_language_dataset.py Outdated

@happyhuman happyhuman Jul 19, 2018

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.

Tim Swast advised me to put the region tags inside the function body. He told me this is the new standard.

Sorry, something went wrong.

Uh oh!

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

All reactions

@sirtorry sirtorry Jul 20, 2018

Copy link
Copy Markdown
Contributor Author

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.

done

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread language/automl/automl_natural_language_dataset.py Outdated

@happyhuman happyhuman Jul 19, 2018

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.

I believe for samples this import should be inside the function body. That way then the code snippet is selected using the region tags, the imports will also be included in the selected snippet.

Sorry, something went wrong.

Uh oh!

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

All reactions

@sirtorry sirtorry Jul 20, 2018

Copy link
Copy Markdown
Contributor Author

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.

done

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread language/automl/automl_natural_language_dataset.py Outdated

@happyhuman happyhuman Jul 19, 2018

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.

You need these comment lines here (or something like this):

# TODO(developer): Uncomment and set to a path to your audio file.
# project_id = 'PROJECT_ID_HERE'
# compute_region = 'COMPUTE_REGION_HERE'
# dataset_name = 'DATASET_NAME_HERE'

The reason is that once the function body is selected to be shown in some web page using the region tags, these comments tell the user what these parameters should be.

Sorry, something went wrong.

Uh oh!

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

All reactions

@sirtorry sirtorry Jul 20, 2018

Copy link
Copy Markdown
Contributor Author

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.

done

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread language/automl/automl_natural_language_dataset.py Outdated

@happyhuman happyhuman Jul 19, 2018

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.

Nothing wrong with the lines above, a more compact way is of course:
classification_type = "MULTILABEL" if multilabel else "MULTICLASS"

Sorry, something went wrong.

Uh oh!

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

All reactions

@sirtorry sirtorry Jul 20, 2018

Copy link
Copy Markdown
Contributor Author

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.

doesn't really affect snippet quality or functionality. won't fix.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread language/automl/automl_natural_language_dataset.py Outdated

@happyhuman happyhuman Jul 19, 2018

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.

Same as above comments. Region tag should be inside the function body.

Sorry, something went wrong.

Uh oh!

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

All reactions

@sirtorry sirtorry Jul 20, 2018

Copy link
Copy Markdown
Contributor Author

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.

done

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread language/automl/automl_natural_language_dataset.py Outdated
print("\tnanos: {}".format(dataset.create_time.nanos))


# [END automl_natural_language_list_datasets]

@happyhuman happyhuman Jul 19, 2018

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 too should be inside the function

Sorry, something went wrong.

Uh oh!

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

All reactions

@sirtorry sirtorry Jul 20, 2018

Copy link
Copy Markdown
Contributor Author

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.

done

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread language/automl/automl_natural_language_dataset.py
args = parser.parse_args()

if args.command == "create_dataset":
multilabel = True if args.multilabel == "True" else False

@happyhuman happyhuman Jul 19, 2018

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 line can be simplified to:
multilabel = (args.multilabel == "True")

Sorry, something went wrong.

Uh oh!

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

All reactions

@sirtorry sirtorry Jul 20, 2018

Copy link
Copy Markdown
Contributor Author

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.

doesn't affect snippet quality or functionality. won't fix.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread language/automl/automl_natural_language_dataset.py
args = parser.parse_args()

if args.command == "create_dataset":
multilabel = True if args.multilabel == "True" else False

@happyhuman happyhuman Jul 19, 2018

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 line can be simplified to:
multilabel = (args.multilabel == "True")

Sorry, something went wrong.

Uh oh!

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

All reactions

@sirtorry sirtorry Jul 20, 2018

Copy link
Copy Markdown
Contributor Author

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.

doesn't affect snippet quality or functionality. won't fix.

Sorry, something went wrong.

Uh oh!

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

All reactions
@sirtorry
address review comments
9f99d37
@sirtorry
sirtorry force-pushed the automl branch from ea530c3 to 9f99d37 Compare July 20, 2018 23:02
happyhuman
happyhuman approved these changes Jul 20, 2018
View reviewed changes

@happyhuman happyhuman 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.

This is quite a large PR. It will be great to have smaller PR's in the future. I will LGTM it, but it will be a good idea to review it in more details later on.

Sorry, something went wrong.

Uh oh!

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

All reactions
@sirtorry
sirtorry merged commit a918a34 into master Jul 20, 2018
@crwilcox crwilcox mentioned this pull request Jan 31, 2020
AutoML: add a get_operation_status method to clients googleapis/python-automl#7
Closed
busunkim96 pushed a commit to busunkim96/python-automl that referenced this pull request Aug 17, 2020
@sirtorry
automl beta [(#1575)](GoogleCloudPlatform/python-docs-samples#1575)
98ea434
* automl initial commit

* lint

* fix import groupings

* add requirements.txt

* address review comments
busunkim96 pushed a commit to googleapis/python-automl that referenced this pull request Aug 17, 2020
@sirtorry
automl beta [(#1575)](GoogleCloudPlatform/python-docs-samples#1575)
e52bdb8
* automl initial commit

* lint

* fix import groupings

* add requirements.txt

* address review comments
busunkim96 pushed a commit to googleapis/python-translate that referenced this pull request Sep 1, 2020
@sirtorry @busunkim96
automl beta [(#1575)](GoogleCloudPlatform/python-docs-samples#1575)
18aa3a5
* automl initial commit

* lint

* fix import groupings

* add requirements.txt

* address review comments
busunkim96 pushed a commit to googleapis/python-translate that referenced this pull request Sep 1, 2020
@sirtorry @busunkim96
automl beta [(#1575)](GoogleCloudPlatform/python-docs-samples#1575)
ba8eaff
* automl initial commit

* lint

* fix import groupings

* add requirements.txt

* address review comments
busunkim96 pushed a commit to googleapis/python-automl that referenced this pull request Sep 15, 2020
@sirtorry @busunkim96
automl beta [(#1575)](GoogleCloudPlatform/python-docs-samples#1575)
c1ea051
* automl initial commit

* lint

* fix import groupings

* add requirements.txt

* address review comments
busunkim96 pushed a commit to googleapis/python-automl that referenced this pull request Sep 15, 2020
@sirtorry @busunkim96
automl beta [(#1575)](GoogleCloudPlatform/python-docs-samples#1575)
2c98635
* automl initial commit

* lint

* fix import groupings

* add requirements.txt

* address review comments
hkdevandla pushed a commit to hkdevandla/python-language that referenced this pull request Sep 26, 2020
@sirtorry
automl beta [(#1575)](GoogleCloudPlatform/python-docs-samples#1575)
ea08e6c
* automl initial commit

* lint

* fix import groupings

* add requirements.txt

* address review comments
busunkim96 pushed a commit to googleapis/python-language that referenced this pull request Sep 29, 2020
@sirtorry @busunkim96
automl beta [(#1575)](GoogleCloudPlatform/python-docs-samples#1575)
c131d90
* automl initial commit

* lint

* fix import groupings

* add requirements.txt

* address review comments
@telpirion telpirion mentioned this pull request Nov 16, 2022
chore(translation): migrate code from googleapis/python-translate #8523
Merged
8 tasks
telpirion pushed a commit that referenced this pull request Nov 16, 2022
@sirtorry @busunkim96
automl beta [(#1575)](#1575)
34ffaf9
* automl initial commit

* lint

* fix import groupings

* add requirements.txt

* address review comments
arbrown pushed a commit that referenced this pull request Nov 17, 2022
@sirtorry @busunkim96
automl beta [(#1575)](#1575)
237d97a
* automl initial commit

* lint

* fix import groupings

* add requirements.txt

* address review comments
@arbrown arbrown mentioned this pull request Nov 17, 2022
migrate code from googleapis/python-automl #8528
Merged
8 tasks
dandhlee pushed a commit that referenced this pull request Nov 17, 2022
@sirtorry @dandhlee
automl beta [(#1575)](#1575)
e8f30ef
* automl initial commit

* lint

* fix import groupings

* add requirements.txt

* address review comments
m-strzelczyk pushed a commit that referenced this pull request Nov 18, 2022
@sirtorry @busunkim96
automl beta [(#1575)](#1575)
1e3de10
* automl initial commit

* lint

* fix import groupings

* add requirements.txt

* address review comments
@m-strzelczyk m-strzelczyk mentioned this pull request Nov 18, 2022
migrate code from googleapis/python-language #8533
Merged
8 tasks
dandhlee pushed a commit that referenced this pull request Nov 18, 2022
@sirtorry @dandhlee
automl beta [(#1575)](#1575)
a7dcd0a
* automl initial commit

* lint

* fix import groupings

* add requirements.txt

* address review comments
parthea pushed a commit to googleapis/google-cloud-python that referenced this pull request Jul 6, 2023
@sirtorry @busunkim96
automl beta [(#1575)](GoogleCloudPlatform/python-docs-samples#1575)
fd5355a
* automl initial commit

* lint

* fix import groupings

* add requirements.txt

* address review comments
parthea pushed a commit to googleapis/google-cloud-python that referenced this pull request Oct 21, 2023
@sirtorry @busunkim96
automl beta [(#1575)](GoogleCloudPlatform/python-docs-samples#1575)
f2c5784
* automl initial commit

* lint

* fix import groupings

* add requirements.txt

* address review comments
parthea pushed a commit to googleapis/google-cloud-python that referenced this pull request Oct 21, 2023
@sirtorry @busunkim96
automl beta [(#1575)](GoogleCloudPlatform/python-docs-samples#1575)
040df4d
* automl initial commit

* lint

* fix import groupings

* add requirements.txt

* address review comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@happyhuman happyhuman happyhuman approved these changes
+1 more reviewer
@crwilcox crwilcox crwilcox left review comments
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 @crwilcox @happyhuman @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.