optuna.storages

The storages module defines a BaseStorage class which abstracts a backend database and provides library-internal interfaces to the read/write histories of the studies and trials. Library users who wish to use storage solutions other than the default in-memory storage should use one of the child classes of BaseStorage documented below.

optuna.storages.RDBStorage

Storage class for RDB backend.

optuna.storages.RedisStorage

Storage class for Redis backend.

optuna.storages.RetryFailedTrialCallback

Retry a failed trial up to a maximum number of times.

optuna.storages.fail_stale_trials

Fail stale trials and run their failure callbacks.