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)What the rule reports
Section titled “What the rule reports”Instantiations of deprecated samplers, callbacks, and hooks in optuna_integration.
How to fix it
Section titled “How to fix it”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.
Diagnostic message
Section titled “Diagnostic message”$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.