Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants