Skip to content
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

Refactor suggestion-internal-modules #1106

Merged
merged 1 commit into from
Mar 24, 2020

Conversation

c-bata
Copy link
Member

@c-bata c-bata commented Mar 24, 2020

What this PR does / why we need it:

  • Avoid shadows of built-in methods (type, min, max, list).
  • Fix comparison operator.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
None

Special notes for your reviewer:

None.

Release note:

NONE

@k8s-ci-robot
Copy link

Hi @c-bata. Thanks for your PR.

I'm waiting for a kubeflow member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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 kubernetes/test-infra repository.

@@ -50,12 +50,12 @@ def convertParameter(p):


class HyperParameter(object):
def __init__(self, name, type, min, max, list, step):
def __init__(self, name, type_, min_, max_, list_, step):
Copy link
Member Author

@c-bata c-bata Mar 24, 2020

Choose a reason for hiding this comment

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

In Python, These are common practices to avoid shadows of built-in methods and variables.

Copy link
Member

Choose a reason for hiding this comment

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

LGTM

@c-bata
Copy link
Member Author

c-bata commented Mar 24, 2020

/assign @johnugeorge

@kubeflow-bot
Copy link

This change is Reviewable

Copy link
Member

@gaocegege gaocegege left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

Thanks for your contribution! 🎉 👍

@c-bata The code is written by me, who is a python にがて

Feel free to refactor it.

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: gaocegege

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@gaocegege
Copy link
Member

/ok-to-test

@c-bata
Copy link
Member Author

c-bata commented Mar 24, 2020

Thank you for your swift review 😄

OK. I'll submit some refactoring pull requests before working on #1100.

@c-bata
Copy link
Member Author

c-bata commented Mar 24, 2020

/retest

@johnugeorge
Copy link
Member

CI seems to be slow now

@k8s-ci-robot k8s-ci-robot merged commit c15fcec into kubeflow:master Mar 24, 2020
@c-bata c-bata deleted the refactor-suggestion-internal branch March 24, 2020 08:52
sperlingxx pushed a commit to sperlingxx/katib that referenced this pull request Jul 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants