Skip to content

Commit

Permalink
Fix errors in PR#12
Browse files Browse the repository at this point in the history
  • Loading branch information
chenghuzi committed Jun 16, 2021
1 parent fef803d commit 03e6a82
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ msgid ""
"was pruned. It is supposed to be raised after "
":func:`optuna.trial.Trial.should_prune` as shown in the following "
"example."
msgstr "该错误告诉用户 当前 :class:`~optuna.trial.Trial` 已经被剪枝. 它被设定在"
" :func:`optuna.trial.Trial.should_prune` 之后被触发, 就像下面的例子里展示的那样."
msgstr "该错误告诉用户 当前 :class:`~optuna.trial.Trial` 已经被剪枝. 就像下面的例子里展示的那样, 它被设定在"
" :func:`optuna.trial.Trial.should_prune` 之后被触发."

#: of optuna.TrialPruned:7
msgid ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ msgid ""
"Database URL. If this argument is set to None, in-memory storage is used,"
" and the :class:`~optuna.study.Study` will not be persistent."
msgstr "数据库URL. 如果该参数被设置为 None, 我们将采用内存存储, 而"
" :class:`~optuna.study.Study` 将不可被持久化."
" :class:`~optuna.study.Study` 将不会被持久化."

#: of optuna.study.create_study:22
msgid ""
Expand All @@ -66,8 +66,8 @@ msgid ""
"your desired options and pass it to the ``storage`` argument instead of a"
" URL."
msgstr "当传入一个数据库 URL 后, Optuna 将在内部使用 `SQLAlchemy`_ 来连接"
"数据库. 更多细节请参考 `SQLAlchemy's document`_. 如果想给 `SQLAlchemy "
"Engine`_ 设定非默认选项, 你可以用你想要的选项来实例化 :class:`~optuna.storages.RDBStorage` "
"数据库. 更多细节请参考 `SQLAlchemy's document`_. 如果想更改 `SQLAlchemy "
"Engine`_ 的默认选项, 你可以用你想要的选项来实例化 :class:`~optuna.storages.RDBStorage` "
"并将其, 而不是一个URL, 传入 ``storage`` 参数."

#: of optuna.study.create_study:32
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ msgid ""
"samplers may continue to use other values besides 1 during the "
"deprecation."
msgstr "Optuna 中的 sampler 和其他依赖这个分布的组件将会忽略这个值并假定 ``step`` 永远为1. "
"在被废弃之前, 用户定义的 sampler 可能包含 1 之外的其他值."
"在被废弃之前, 用户定义的 sampler 可使用 1 之外的其他值."

#: of optuna.distributions.IntLogUniformDistribution
msgid "引发"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ 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 @@ -33,8 +33,7 @@ msgid ""
"example."
msgstr ""
"该错误表明当前 :class:`~optuna.trial.Trial` "
"已被剪枝. 它一般会在 "
":func:`optuna.trial.Trial.should_prune` 之后被抛出, 就像下面例子中那样."
"已被剪枝. 像下面例子中那样, 一般 :func:`optuna.trial.Trial.should_prune` 出现后会抛出该异常."


#: of optuna.exceptions.TrialPruned:7
Expand Down

0 comments on commit 03e6a82

Please sign in to comment.