Skip to content

Commit

Permalink
Translation of API reference: optuna.exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
chenghuzi committed Jun 1, 2021
1 parent 1abc31a commit 3557e5e
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ msgstr ""

#: of optuna.exceptions.CLIUsageError:1
msgid "Exception for CLI."
msgstr ""
msgstr "命令行界面异常."

#: of optuna.exceptions.CLIUsageError:3
msgid "CLI raises this exception when it receives invalid configuration."
msgstr ""
msgstr "命令行界面异常在收到无效配置时会被触发."

Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ msgstr ""

#: of optuna.exceptions.DuplicatedStudyError:1
msgid "Exception for a duplicated study name."
msgstr ""
msgstr "重复 study 名的异常"

#: of optuna.exceptions.DuplicatedStudyError:3
msgid ""
"This error is raised when a specified study name already exists in the "
"storage."
msgstr ""
msgstr "当存储中已有一个和指定 study 同名的 study 时, 该错误将会被触发."

Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ msgstr ""

#: of optuna.exceptions.OptunaError:1
msgid "Base class for Optuna specific errors."
msgstr ""
msgstr "Optuna 错误的基类. "

Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ msgstr ""

#: of optuna.exceptions.StorageInternalError:1
msgid "Exception for storage operation."
msgstr ""
msgstr "存储操作的异常."

#: of optuna.exceptions.StorageInternalError:3
msgid "This error is raised when an operation failed in backend DB of storage."
msgstr ""
msgstr "当 后端存储数据库操作失败时, 该错误将会被触发."

Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ msgstr ""

#: of optuna.exceptions.TrialPruned:1
msgid "Exception for pruned trials."
msgstr ""
msgstr "被剪枝 trial 的异常"

#: of optuna.exceptions.TrialPruned:3
msgid ""
Expand All @@ -32,12 +32,18 @@ msgid ""
":func:`optuna.trial.Trial.should_prune` as shown in the following "
"example."
msgstr ""
"该错误表明当前 :class:`~optuna.trial.Trial` "
"已被剪枝. 它一般会在 "
":func:`optuna.trial.Trial.should_prune` 之后被抛出, 就像下面例子中那样."


#: of optuna.exceptions.TrialPruned:7
msgid ""
":class:`optuna.TrialPruned` is an alias of "
":class:`optuna.exceptions.TrialPruned`."
msgstr ""
":class:`optuna.TrialPruned` 是 "
":class:`optuna.exceptions.TrialPruned` 的一个别名."

#: of optuna.exceptions.TrialPruned:10
msgid "示例"
Expand Down

0 comments on commit 3557e5e

Please sign in to comment.