optuna.storages.journal.JournalRedisBackend
- class optuna.storages.journal.JournalRedisBackend(url, use_cluster=False, prefix='')[源代码]
用于 Journal 日志后端的 Redis 存储类。
- 参数:
注意
作为实验性功能在 v3.1.0 中添加。接口可能会在后续版本中更改,恕不另行通知。参见 https://github.com/optuna/optuna/releases/tag/v3.1.0。
方法
append_logs
(logs)将日志附加到后端。
从后端加载快照。
read_logs
(log_number_from)读取日志编号大于或等于
log_number_from
的日志。save_snapshot
(snapshot)将快照保存到后端。