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

Test for Bayesian Optimization Algo #406

Merged
merged 14 commits into from
Mar 11, 2019
Merged

Conversation

jdplatt
Copy link
Contributor

@jdplatt jdplatt commented Feb 22, 2019

#230

Here is a PR containing tests for the code in pkg/suggestion/bayesianoptimization. You can run them using test/scripts/python_tests.sh. I have close to full coverage but didn't cover the parts of the code that deal with the beginning of tuning when there is no data. I think there is a cleaner way to handle this using a different suggestion algorithm such as random search. I fixed a few bugs in the way the models were trained alongside writing the tests.


This change is Reviewable

@k8s-ci-robot
Copy link

Hi @jdplatt. 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.

@googlebot
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here (e.g. I signed it!) and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

@YujiOshima
Copy link
Contributor

@jdplatt Thank you for PR! Could you sign the CLA?

@jdplatt jdplatt force-pushed the master branch 5 times, most recently from 7ba9240 to f8a141d Compare February 26, 2019 19:56
@jdplatt
Copy link
Contributor Author

jdplatt commented Feb 26, 2019

I signed it!

@googlebot
Copy link

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

@jdplatt
Copy link
Contributor Author

jdplatt commented Feb 26, 2019

@YujiOshima

Had a few issues getting corporate CLA to work but should be all good now.

@YujiOshima
Copy link
Contributor

Thanks, I will take a look!

@jdplatt
Copy link
Contributor Author

jdplatt commented Mar 5, 2019

Thanks for looking at my PR. I fixed the two issues you raised. Do you need me to do anything else?

@YujiOshima
Copy link
Contributor

@jdplatt Thanks!
/ok-to-test

from ..bayesianoptimization.src.bayesian_optimization_algorithm import BOAlgorithm


def test_boa(dim, request_num, lower_bounds, upper_bounds, X_train, y_train):
Copy link
Contributor

Choose a reason for hiding this comment

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

General comment (for all test files):
For all the tests, add a brief comment section that explains what this test does, what are the expectations, etc. This makes it easier for other contributors to follow.

@richardsliu
Copy link
Contributor

/lgtm
/approve

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: richardsliu

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

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