Skip to content

Conversation

@malun22
Copy link
Contributor

@malun22 malun22 commented Oct 20, 2025

Contributor Agreements

  • I agree to the contributor agreements.

Motivation

It is annyoing to set the search space for a sampler. So I added the infer_relative_search_space method to the PSO Sampler to find numeric distributions automatically and add them to the search space.

Description of the changes

  • Add infer_relative_search_space to the PSO class
  • Notify the user that PSO Sampler cannot process dynamic changes to the search space in the README

Copy link
Member

@y0z y0z left a comment

Choose a reason for hiding this comment

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

LGTM

@y0z y0z merged commit e53e77d into optuna:main Oct 22, 2025
3 checks passed
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.

2 participants