Skip to content

Conversation

@saitcakmak
Copy link
Contributor

Summary:
Numeric ordered choice parameters should always have sorted values since the ordering is based on their numerical values. This change adds validation to enforce sort_values=True for numeric ordered parameters and suppresses the warning since the value is now required rather than optional.

This simplifies downstream handling of choice parameters, such as in (yet to be implemented for choice) expansion of the model space in Adapter using points observed in previous trials. The fewer options we have, the easier it will be to support new features.

Reviewed By: dme65

Differential Revision: D87903513

Summary:
Numeric ordered choice parameters should always have sorted values since the ordering is based on their numerical values. This change adds validation to enforce `sort_values=True` for numeric ordered parameters and suppresses the warning since the value is now required rather than optional.

This simplifies downstream handling of choice parameters, such as in (yet to be implemented for choice) expansion of the model space in `Adapter` using points observed in previous trials. The fewer options we have, the easier it will be to support new features.

Reviewed By: dme65

Differential Revision: D87903513
@meta-cla meta-cla bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Nov 26, 2025
@meta-codesync
Copy link

meta-codesync bot commented Nov 26, 2025

@saitcakmak has exported this pull request. If you are a Meta employee, you can view the originating Diff in D87903513.

@meta-codesync
Copy link

meta-codesync bot commented Nov 26, 2025

This pull request has been merged in f0d4594.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported Merged meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants