Skip to content

optuna_integration/deprecated-integration-classes

Pack Severity Fix Versions
Optuna Integration warning none, edit by hand All versions

optuna-integration 5.1 marks PyCmaSampler, MLflowCallback, WeightsAndBiasesCallback, TensorBoardCallback, CometCallback, TrackioCallback, and TensorFlowPruningHook with @deprecated_class for removal in 6.0.

sampler = optuna_integration.PyCmaSampler(seed=0)
sampler = optuna.samplers.CmaEsSampler(seed=0)

Instantiations of deprecated samplers, callbacks, and hooks in optuna_integration.

Use optuna.samplers.CmaEsSampler instead of PyCmaSampler, Keras pruning callbacks instead of TensorFlowPruningHook, and direct experiment-tracking calls inside the objective or Optuna callback instead of the deprecated logger callbacks.

$C is deprecated in optuna-integration and scheduled for removal in Optuna 6.0. Migrate to the replacement integration or log trials directly.

See all rules in the Optuna Integration pack.