Skip to content

fix: make logging more informative during training#310

Merged
sasha-gitg merged 2 commits into
googleapis:devfrom
sasha-gitg:dev
Apr 13, 2021
Merged

fix: make logging more informative during training#310
sasha-gitg merged 2 commits into
googleapis:devfrom
sasha-gitg:dev

Conversation

@sasha-gitg
Copy link
Copy Markdown
Member

No description provided.

@product-auto-label product-auto-label Bot added the api: aiplatform Issues related to the AI Platform API. label Apr 13, 2021
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Apr 13, 2021
@sasha-gitg sasha-gitg requested a review from vinnysenthil April 13, 2021 15:41
self._raise_failure()

_LOGGER.log_action_completed_against_resource("", "run", self)
_LOGGER.log_action_completed_against_resource("run", "completed", self)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

From the docstring of log_action_completed_against_resource, which is:

        Args:
            noun (str): Noun the action acts on against the resource. Can be empty string.
            action (str): Action started against resource. ie: "Deployed". Can be empty string.
            resource_noun_obj (AiPlatformResourceNoun):
                Resource noun object the action is acting against

I can't tell if these args are correct or not.

What does Noun the action acts on against the resource. mean?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The noun-action combo is for nouns in the following:

  • run completed
  • data imported
  • model deployed

Sometimes these nouns are separate from the resource they act on. Like data/dataset and model/endpoint. Happy to improve the wording in the comment.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Okay I see!

I was having trouble parsing the sentence. I get it now.

Perhaps could be changed to:
The noun that the action acts on against the resource.,
The action that was started against the resource., etc.

The examples would actually be the most helpful.

)
)
log_wait = min(log_wait * multiplier, max_wait)
previous_time = current_time
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Contributor

@ivanmkc ivanmkc left a comment

Choose a reason for hiding this comment

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

LGTM

@sasha-gitg sasha-gitg merged commit 9a4d991 into googleapis:dev Apr 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: aiplatform Issues related to the AI Platform API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants