Skip to content

Commit

Permalink
Update gitignore & add generated docs and translation files
Browse files Browse the repository at this point in the history
  • Loading branch information
chenghuzi committed Mar 10, 2021
1 parent 9dfeae5 commit 7fc4cd5
Show file tree
Hide file tree
Showing 236 changed files with 19,455 additions and 22 deletions.
13 changes: 5 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -132,16 +132,13 @@ dmypy.json
.vscode/

build*
source/reference/generated/
source/reference/multi_objective/generated/
source/reference/visualization/generated/
# source/reference/generated/
# source/reference/multi_objective/generated/
# source/reference/visualization/generated/
source/tutorial/


source/locale/zh_CN/LC_MESSAGES/reference/generated/
source/locale/zh_CN/LC_MESSAGES/reference/multi_objective/generated/
source/locale/zh_CN/LC_MESSAGES/reference/visualization/generated/

.DS_Store

example*
example*
*.db
30 changes: 16 additions & 14 deletions source/locale/zh_CN/LC_MESSAGES/faq.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Optuna 1.4.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-01-14 18:04-0500\n"
"POT-Creation-Date: 2021-03-10 02:25-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand Down Expand Up @@ -56,9 +56,10 @@ msgstr ""
"``lambda`` 的例子:"

#: ../../source/faq.rst:66
#, fuzzy
msgid ""
"Please also refer to `sklearn_addtitional_args.py "
"<https://github.com/optuna/optuna/blob/master/examples/sklearn_additional_args.py>`_"
"<https://github.com/optuna/optuna/blob/master/examples/sklearn/sklearn_additional_args.py>`_"
" example, which reuses the dataset instead of loading it in each trial "
"execution."
msgstr ""
Expand Down Expand Up @@ -100,8 +101,8 @@ msgid ""
"``joblib``. For example, using ``joblib``:"
msgstr ""
"有两种方法可以将 study 持久化。具体采用哪种取决于你是使用内存存储 (in-memory) 还是远程数据库存储 (RDB). 通过 "
"``pickle`` 或者 ``joblib``, 采用了内存存储的 study 可以和普通的 Python 对象一样被"
"存储和加载。比如用 ``joblib`` 的话:"
"``pickle`` 或者 ``joblib``, 采用了内存存储的 study 可以和普通的 Python 对象一样被存储和加载。比如用 "
"``joblib`` 的话:"

#: ../../source/faq.rst:106
msgid "And to resume the study:"
Expand Down Expand Up @@ -381,9 +382,10 @@ msgid ""
"periodically run the garbage collector. Specify ``gc_after_trial`` to "
":obj:`True` when calling :func:`~optuna.study.Study.optimize` or call "
":func:`gc.collect` inside a callback."
msgstr "如果内存使用量随着你运行更多的 trial 而增长,请尝试定期运行垃圾回收器。"
"可在调用 :func:`~optuna.study.Study.optimize` 时指定 ``gc_after_trial`` 为 :obj:`True` 或"
"在回调函数中调用 :func:`gc.collect`."
msgstr ""
"如果内存使用量随着你运行更多的 trial 而增长,请尝试定期运行垃圾回收器。可在调用 "
":func:`~optuna.study.Study.optimize` 时指定 ``gc_after_trial`` 为 :obj:`True`"
" 或在回调函数中调用 :func:`gc.collect`."

#: ../../source/faq.rst:328
msgid ""
Expand All @@ -394,10 +396,10 @@ msgid ""
" inside the objective function, except for the fact that "
":func:`gc.collect` is called even when errors, including "
":class:`~optuna.exceptions.TrialPruned` are raised."
msgstr "运行垃圾回收器是有性能损失的,取决于你的目标函数运行的速度,这种损失可能是不能忽略的。"
"因此,``gc_after_trial`` 在默认情况下是 :obj:`False`. 注意,上面这个例子类似于在目标函数内运行"
"垃圾回收器,不同之处在于 :func:`gc.collect` 哪怕在出现包括 :class:`~optuna.exceptions.TrialPruned` "
"这样的错误时也会被调用。"
msgstr ""
"运行垃圾回收器是有性能损失的,取决于你的目标函数运行的速度,这种损失可能是不能忽略的。因此,``gc_after_trial`` 在默认情况下是 "
":obj:`False`. 注意,上面这个例子类似于在目标函数内运行垃圾回收器,不同之处在于 :func:`gc.collect` 哪怕在出现包括"
" :class:`~optuna.exceptions.TrialPruned` 这样的错误时也会被调用。"

#: ../../source/faq.rst:333
msgid ""
Expand All @@ -407,7 +409,7 @@ msgid ""
"class, you will have to call the garbage collector inside the objective "
"function."
msgstr ""
":class:`~optuna.integration.ChainerMNStudy` 目前并不提供 "
"``gc_after_trial`` 和用于 :func:`~optuna.integration.ChainerMNStudy.optimize` 的回调接口。"
"在使用该类时,你只能在目标函数内部调用垃圾回收器。"
":class:`~optuna.integration.ChainerMNStudy` 目前并不提供 ``gc_after_trial`` 和用于"
" :func:`~optuna.integration.ChainerMNStudy.optimize` "
"的回调接口。在使用该类时,你只能在目标函数内部调用垃圾回收器。"

Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2018, Optuna Contributors.
# This file is distributed under the same license as the Optuna package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2021.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Optuna 2.4.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-01-14 18:04-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.8.0\n"

#: ../../source/reference/generated/optuna.TrialPruned.rst:2
msgid "optuna.TrialPruned"
msgstr ""

#: of optuna.TrialPruned:1
msgid "Exception for pruned trials."
msgstr ""

#: of optuna.TrialPruned:3
msgid ""
"This error tells a trainer that the current :class:`~optuna.trial.Trial` "
"was pruned. It is supposed to be raised after "
":func:`optuna.trial.Trial.should_prune` as shown in the following "
"example."
msgstr ""

#: of optuna.TrialPruned:7
msgid ""
":class:`optuna.TrialPruned` is an alias of "
":class:`optuna.exceptions.TrialPruned`."
msgstr ""

#: of optuna.TrialPruned:10
msgid "示例"
msgstr ""

Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2018, Optuna Contributors.
# This file is distributed under the same license as the Optuna package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2021.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Optuna 2.4.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-01-14 18:04-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.8.0\n"

#: ../../source/reference/generated/optuna.create_study.rst:2
msgid "optuna.create\\_study"
msgstr ""

#: of optuna.create_study:1
msgid "Create a new :class:`~optuna.study.Study`."
msgstr ""

#: of optuna.create_study:4
msgid "示例"
msgstr ""

#: of optuna.create_study
msgid "参数"
msgstr ""

#: of optuna.create_study:18
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. .. note::"
" When a database URL is passed, Optuna internally uses `SQLAlchemy`_ "
"to handle the database. Please refer to `SQLAlchemy's document`_ for "
"further details. If you want to specify non-default options to "
"`SQLAlchemy Engine`_, you can instantiate "
":class:`~optuna.storages.RDBStorage` with your desired options and "
"pass it to the ``storage`` argument instead of a URL. .. _SQLAlchemy: "
"https://www.sqlalchemy.org/ .. _SQLAlchemy's document: "
"https://docs.sqlalchemy.org/en/latest/core/engines.html#database-urls .."
" _SQLAlchemy Engine: "
"https://docs.sqlalchemy.org/en/latest/core/engines.html"
msgstr ""

#: of optuna.create_study:18
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 ""

#: of optuna.create_study:22
msgid ""
"When a database URL is passed, Optuna internally uses `SQLAlchemy`_ to "
"handle the database. Please refer to `SQLAlchemy's document`_ for further"
" details. If you want to specify non-default options to `SQLAlchemy "
"Engine`_, you can instantiate :class:`~optuna.storages.RDBStorage` with "
"your desired options and pass it to the ``storage`` argument instead of a"
" URL."
msgstr ""

#: of optuna.create_study:32
msgid ""
"A sampler object that implements background algorithm for value "
"suggestion. If :obj:`None` is specified, "
":class:`~optuna.samplers.TPESampler` is used during single-objective "
"optimization and :class:`~optuna.samplers.NSGAIISampler` during multi-"
"objective optimization. See also :class:`~optuna.samplers`."
msgstr ""

#: of optuna.create_study:36
msgid ""
"A pruner object that decides early stopping of unpromising trials. If "
":obj:`None` is specified, :class:`~optuna.pruners.MedianPruner` is used "
"as the default. See also :class:`~optuna.pruners`."
msgstr ""

#: of optuna.create_study:39
msgid ""
"Study's name. If this argument is set to None, a unique name is generated"
" automatically."
msgstr ""

#: of optuna.create_study:41
msgid ""
"Direction of optimization. Set ``minimize`` for minimization and "
"``maximize`` for maximization. .. note:: If none of `direction` and "
"`directions` are specified, the direction of the study is set to "
"\"minimize\"."
msgstr ""

#: of optuna.create_study:41
msgid ""
"Direction of optimization. Set ``minimize`` for minimization and "
"``maximize`` for maximization."
msgstr ""

#: of optuna.create_study:45
msgid ""
"If none of `direction` and `directions` are specified, the direction of "
"the study is set to \"minimize\"."
msgstr ""

#: of optuna.create_study:47
msgid "A sequence of directions during multi-objective optimization."
msgstr ""

#: of optuna.create_study:48
msgid ""
"Flag to control the behavior to handle a conflict of study names. In the "
"case where a study named ``study_name`` already exists in the "
"``storage``, a :class:`~optuna.exceptions.DuplicatedStudyError` is raised"
" if ``load_if_exists`` is set to :obj:`False`. Otherwise, the creation of"
" the study is skipped, and the existing one is returned."
msgstr ""

#: of optuna.create_study
msgid "返回"
msgstr ""

#: of optuna.create_study:54
msgid "A :class:`~optuna.study.Study` object."
msgstr ""

#: of optuna.create_study
msgid "引发"
msgstr ""

#: of optuna.create_study:56
msgid ""
"If the length of ``directions`` is zero. Or, if ``direction`` is "
"neither 'minimize' nor 'maximize' when it is a string. Or, if the "
"element of ``directions`` is neither `minimize` nor `maximize`. Or, "
"if both ``direction`` and ``directions`` are specified."
msgstr ""

#: of optuna.create_study:58
msgid ""
":func:`optuna.create_study` is an alias of "
":func:`optuna.study.create_study`."
msgstr ""

Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2018, Optuna Contributors.
# This file is distributed under the same license as the Optuna package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2021.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Optuna 2.4.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-01-14 18:04-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.8.0\n"

#: ../../source/reference/generated/optuna.delete_study.rst:2
msgid "optuna.delete\\_study"
msgstr ""

#: of optuna.delete_study:1
msgid "Delete a :class:`~optuna.study.Study` object."
msgstr ""

#: of optuna.delete_study:4
msgid "示例"
msgstr ""

#: of optuna.delete_study
msgid "参数"
msgstr ""

#: of optuna.delete_study:31
msgid "Study's name."
msgstr ""

#: of optuna.delete_study:32
msgid ""
"Database URL such as ``sqlite:///example.db``. Please see also the "
"documentation of :func:`~optuna.study.create_study` for further details."
msgstr ""

#: of optuna.delete_study:35
msgid ""
":func:`optuna.delete_study` is an alias of "
":func:`optuna.study.delete_study`."
msgstr ""

0 comments on commit 7fc4cd5

Please sign in to comment.