Skip to content

Commit 629ef3a

Browse files
committed
[DOC] Update documentation
1 parent 217eeb3 commit 629ef3a

5 files changed

Lines changed: 38 additions & 22 deletions

File tree

CHANGELOG.rst

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,29 @@ Changelog
44
[Beta]
55
------
66

7-
Added
8-
~~~~~
9-
* [ENH] Add set_scheduler | @xuyxu
10-
* [ENH] Add AdversarialTrainingClassifier and AdversarialTrainingRegressor | @xuyxu
11-
* [ENH] Add SnapshotEnsembleClassifier and SnapshotEnsembleRegressor | @zzzzwj and @xuyxu
12-
* [ENH] Add model validation and serialization | @ghost-ronin and @xuyxu
13-
* [MNT] Add CI and maintenance tools | @xuyxu
14-
* [MNT] Add the code coverage on codecov | @xuyxu
15-
* [MNT] Add the version numbers to requirements.txt | @zackhardtoname and @xuyxu
7+
* |MajorFeature| Add :meth:`set_scheduler` for all ensembles | @xuyxu
8+
* |MajorFeature| Add :class:`AdversarialTrainingClassifier` and :class:`AdversarialTrainingRegressor` | @xuyxu
9+
* |MajorFeature| Add :class:`SnapshotEnsembleClassifier` and :class:`SnapshotEnsembleRegressor` | @xuyxu
10+
* |MajorFeature| Add model validation and serialization | @ghost-ronin and @xuyxu
11+
* |Enhancement| Add CI and maintenance tools | @xuyxu
12+
* |Enhancement| Add the code coverage on codecov | @xuyxu
13+
* |Enhancement| Add the version numbers to requirements.txt | @zackhardtoname and @xuyxu
14+
* |Enhancement| Refactor the codes on operating tensors into an independent module | @zzzzwj
15+
* |Enhancement| Refactor the set_optimizer into an independent method | @xuyxu
16+
* |Enhancement| Improve the logging module | @zzzzwj
17+
* |API| Remove the input argument ``output_dim`` from all methods | @xuyxu
18+
* |Fix| Fix the bug in logging module when using multi-processing | @zzzzwj
1619

17-
Changed
18-
~~~~~~~
19-
* [ENH] Refactor the codes on operating tensors into an independent module | @zzzzwj
20-
* [ENH] Refactor the set_optimizer into an independent method | @xuyxu
21-
* [ENH] Improve the logging module | @zzzzwj
2220

23-
Removed
24-
~~~~~~~
25-
* [ENH] Remove the input parameter `output_dim` from all methods | @xuyxu
21+
.. role:: raw-html(raw)
22+
:format: html
2623

27-
Fixed
28-
~~~~~
29-
* [BUG] Fix the bug in logging module when using multi-processing | @zzzzwj
24+
.. role:: raw-latex(raw)
25+
:format: latex
26+
27+
.. |MajorFeature| replace:: :raw-html:`<span class="badge badge-success">Major Feature</span>` :raw-latex:`{\small\sc [Major Feature]}`
28+
.. |Feature| replace:: :raw-html:`<span class="badge badge-success">Feature</span>` :raw-latex:`{\small\sc [Feature]}`
29+
.. |Efficiency| replace:: :raw-html:`<span class="badge badge-info">Efficiency</span>` :raw-latex:`{\small\sc [Efficiency]}`
30+
.. |Enhancement| replace:: :raw-html:`<span class="badge badge-info">Enhancement</span>` :raw-latex:`{\small\sc [Enhancement]}`
31+
.. |Fix| replace:: :raw-html:`<span class="badge badge-danger">Fix</span>` :raw-latex:`{\small\sc [Fix]}`
32+
.. |API| replace:: :raw-html:`<span class="badge badge-warning">API Change</span>` :raw-latex:`{\small\sc [API Change]}`

docs/parameters.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ Reference:
120120
B. Lakshminarayanan, A. Pritzel, C. Blundell., Simple and Scalable
121121
Predictive Uncertainty Estimation using Deep Ensembles, NIPS 2017.
122122

123+
.. warning::
124+
When your base estimator is under-fit on the dataset, it is not recommended to use the :mod:`AdversarialTrainingClassifier` or :mod:`AdversarialTrainingRegressor`, because they may deteriorate the performance further.
125+
123126
AdversarialTrainingClassifier
124127
*****************************
125128

docs/quick_start.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ You can use the latest version of Ensemble-PyTorch with the following command:
1515
1616
Ensemble-PyTorch is designed to be portable and has very small package dependencies. It is recommended to use the Python environment and PyTorch installed from `Anaconda <https://www.anaconda.com/>`__. In this case, there is no need to run the third command in the code snippet above.
1717

18+
.. tip::
19+
Ensemble-PyTorch is close to the end of the Beta stage. It will soon be uploaded to `PyPI <https://pypi.org/>`__.
20+
1821
Define Your Base Estimator
1922
--------------------------
2023

@@ -62,8 +65,8 @@ Ensemble-PyTorch uses a global logger to track and print the intermediate inform
6265
6366
Using the logger, all intermediate information will be printed on the command line and saved to the specified text file: classification_mnist_mlp.
6467

65-
Choose the Ensemble Method
66-
--------------------------
68+
Choose the Ensemble
69+
-------------------
6770

6871
After defining the base estimator, we can then wrap it using one of ensemble methods available in Ensemble-PyTorch. Different methods have very similar APIs, take the ``VotingClassifier`` as an example:
6972

docs/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
sphinx==3.2.*
2+
sphinx-panels==0.5.*
23
sphinx-copybutton
34
guzzle_sphinx_theme

docs/roadmap.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
Roadmap
22
=======
3+
4+
[0.1.0] - ~
5+
-----------
6+
7+
* Add the partial-fit mode for all ensembles.
8+
* Support manually-specified criteria in the ``predict`` function.

0 commit comments

Comments
 (0)