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

[GSOC] added Unknown distribution and convertDistribution in suggestion client #2403

Merged

Conversation

shashank-iitbhu
Copy link
Contributor

What this PR does / why we need it:

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

Checklist:

  • Docs included if any changes are user facing


for _, tc := range tcs {
actualFeasibleSpace := convertFeasibleSpace(tc.inFeasibleSpace)
if !compareFeasibleSpaces(actualFeasibleSpace, tc.expectedFeasibleSpace) {
Copy link
Member

Choose a reason for hiding this comment

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

Instead of this custom function, could you use the https://github.com/google/go-cmp?
You can find some guidance for developing here: https://github.com/kubeflow/katib/blob/master/docs/developer-guide.md#go-development

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, removed the helper function and used cmp.Diff instead.

expectedFeasibleSpace *suggestionapi.FeasibleSpace
testDescription string
}{
{
Copy link
Member

Choose a reason for hiding this comment

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

I don't think that all 3 cases should be useful.
So, could you add only 2 cases, "distribution is Distribution_DISTRIBUTION_UNKNOWN", "distribution is not Distribution_DISTRIBUTION_UNKNOWN"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, removed the extra test cases.

Signed-off-by: Shashank Mittal <[email protected]>
Copy link
Member

@tenzen-y tenzen-y left a comment

Choose a reason for hiding this comment

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

Thank you!
/lgtm
/approve

Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: tenzen-y

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

@google-oss-prow google-oss-prow bot merged commit 2f5bda2 into kubeflow:master Aug 18, 2024
63 checks passed
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.

[GSOC] Project 8: Support various Parameter Distribution in Katib
2 participants