Skip to content

Add GPSampler as a sampler that supports constraints#6176

Merged
y0z merged 1 commit intooptuna:masterfrom
1kastner:patch-1
Jun 27, 2025
Merged

Add GPSampler as a sampler that supports constraints#6176
y0z merged 1 commit intooptuna:masterfrom
1kastner:patch-1

Conversation

@1kastner
Copy link
Copy Markdown
Contributor

@1kastner 1kastner commented Jun 24, 2025

Motivation

In the FAQ, a sampler that supports contraints was missing, i.e., GPSampler. See https://optuna.readthedocs.io/en/stable/reference/samplers/index.html for reference. This has been fixed.

Description of the changes

Add sampler to enumeration within answer in FAQ.

@1kastner 1kastner marked this pull request as ready for review June 24, 2025 09:11
@nabenabe0928 nabenabe0928 added the document Documentation related. label Jun 25, 2025
@nabenabe0928 nabenabe0928 added this to the v4.5.0 milestone Jun 25, 2025
@nabenabe0928
Copy link
Copy Markdown
Contributor

@y0z
Could you review this PR?

-------------------------------------------------

When you want to optimize a model with constraints, you can use the following classes: :class:`~optuna.samplers.TPESampler`, :class:`~optuna.samplers.NSGAIISampler` or `BoTorchSampler <https://optuna-integration.readthedocs.io/en/stable/reference/generated/optuna_integration.BoTorchSampler.html>`__.
When you want to optimize a model with constraints, you can use the following classes: :class:`~optuna.samplers.TPESampler`, :class:`~optuna.samplers.NSGAIISampler`, :class:`~optuna.samplers.GPSampler` or `BoTorchSampler <https://optuna-integration.readthedocs.io/en/stable/reference/generated/optuna_integration.BoTorchSampler.html>`__.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Since BoTorchSampler was migrated to Optuna integration and isn't in the Optuna main repository anymore, what about removing BoTorchSampler? > @y0z

Suggested change
When you want to optimize a model with constraints, you can use the following classes: :class:`~optuna.samplers.TPESampler`, :class:`~optuna.samplers.NSGAIISampler`, :class:`~optuna.samplers.GPSampler` or `BoTorchSampler <https://optuna-integration.readthedocs.io/en/stable/reference/generated/optuna_integration.BoTorchSampler.html>`__.
When you want to optimize a model with constraints, you can use the following classes: :class:`~optuna.samplers.TPESampler`, :class:`~optuna.samplers.NSGAIISampler`, or :class:`~optuna.samplers.GPSampler`.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think including BoTorchSampler in the list is OK.

Copy link
Copy Markdown
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 cd2fc0b into optuna:master Jun 27, 2025
15 checks passed
@y0z y0z unassigned y0z and nabenabe0928 Jun 27, 2025
@1kastner 1kastner deleted the patch-1 branch June 27, 2025 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

document Documentation related.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants