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

Add condition control when passing parameters bounds to scipy.minimize. #4977

Conversation

Sunny-Island
Copy link
Contributor

Description

See Issue. When using GP tuner, it will pass wrong search space bound to scipy, which will fail bound check. Previous code is:

    bounds_minmax = np.array(
        [[bound['_value'][0], bound['_value'][-1]] for bound in bounds])

But GP tuner should support both quniform and qloguniform, which is [low, high, q]. bound['_value'][-1] will visit q instead of higher bound.

@Sunny-Island
Copy link
Contributor Author

Sunny-Island commented Jun 30, 2022

Please review this pull request. @liuzhe-lz @ultmaster @J-shang @suiguoxin @leckie-chn @QuanluZhang

@Sunny-Island
Copy link
Contributor Author

This PR fails pylint test, but the problem is caused by #4883. It seems it will be fixed later.

@ultmaster ultmaster closed this Jul 15, 2022
@ultmaster ultmaster reopened this Jul 15, 2022
Copy link
Contributor

@ultmaster ultmaster left a comment

Choose a reason for hiding this comment

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

On behalf of @suiguoxin

@ultmaster ultmaster merged commit 65fcd4d into microsoft:master Jul 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants