optuna.exceptions

The exceptions 模块定义了源自基类 OptunaError 的 Optuna 特定异常。对于库用户来说,特别重要的是 TrialPruned 异常,当 optuna.trial.Trial.should_prune() 返回 True 时,应该修剪一个 trial,就会抛出此异常。

OptunaError

Optuna 特定错误的基类。

TrialPruned

被剪枝的 trial 的异常。

CLIUsageError

CLI 的异常。

StorageInternalError

存储操作的异常。

DuplicatedStudyError

重复 study 名称的异常。

UpdateFinishedTrialError

更新已完成 trial 的异常。