Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolved warnings during document generation. #408

Open
wants to merge 10 commits into
base: develop/v2
Choose a base branch
from
3 changes: 3 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,6 @@ jobs:
- name: Perform mypy
run: |
mypy --config-file mypy.ini .
- name: Perform docstrfmt
run: |
docstrfmt --check docs/source/
45 changes: 26 additions & 19 deletions docs/source/api_reference/hpo.rst
Original file line number Diff line number Diff line change
@@ -1,41 +1,48 @@
Hyperparameter Optimization
===========================


Algorithms
----------

.. currentmodule:: aiaccel.hpo.algorithms

.. autosummary::
:toctree: generated/
:toctree: generated/

NelderMeadAlgorism
NelderMeadAlgorism

Optuna Utilities
----------------

Samplers
^^^^^^^^
~~~~~~~~

.. currentmodule:: aiaccel.hpo.optuna.samplers

.. autosummary::
:toctree: generated/
:toctree: generated/

NelderMeadSampler
NelderMeadSampler

Suggest Wrappers
^^^^^^^^^^^^^^^^
~~~~~~~~~~~~~~~~

.. currentmodule:: aiaccel.hpo.optuna.suggest_wrapper

.. autosummary::
:toctree: generated/

Suggest
Const
SuggestFloat
SuggestInt
SuggestCategorical
SuggestDiscreteUniform
SuggestLogUniform
SuggestUniform
.. lightning.OptimizerLightningModule
.. lightning.OptimizerConfig
:toctree: generated/

Suggest
Const
SuggestFloat
SuggestInt
SuggestCategorical
SuggestDiscreteUniform
SuggestLogUniform
SuggestUniform

..
lightning.OptimizerLightningModule

..
lightning.OptimizerConfig
13 changes: 5 additions & 8 deletions docs/source/api_reference/index.rst
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@

*************
API Reference
*************

=============

.. toctree::
:maxdepth: 2
:maxdepth: 2

torch
hpo
utils
torch
hpo
utils
28 changes: 16 additions & 12 deletions docs/source/api_reference/torch.rst
Original file line number Diff line number Diff line change
@@ -1,32 +1,36 @@
PyTorch/Lightning Toolkit
=========================


Datasets
--------

.. currentmodule:: aiaccel.torch.datasets

.. autosummary::
:toctree: generated/
:toctree: generated/

CachedDataset
HDF5Dataset
RawHDF5Dataset
CachedDataset
HDF5Dataset
RawHDF5Dataset

Dataset Utilities
-----------------

.. currentmodule:: aiaccel.torch.datasets
.. autosummary::
:toctree: generated/

scatter_dataset
.. autosummary::
:toctree: generated/

scatter_dataset

Lightning Utilities
-------------------

.. currentmodule:: aiaccel.torch.lightning

.. autosummary::
:toctree: generated/
:toctree: generated/

ABCIEnvironment
OptimizerLightningModule
OptimizerConfig
ABCIEnvironment
OptimizerLightningModule
OptimizerConfig
8 changes: 4 additions & 4 deletions docs/source/api_reference/utils.rst
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
Miscellaneous Utilities
=======================


Config Utilities
----------------

.. currentmodule:: aiaccel.utils

.. autosummary::
:toctree: generated/
:toctree: generated/

print_config
pathlib2str_config
print_config
pathlib2str_config
1 change: 0 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
"sphinx.ext.napoleon",
"sphinx.ext.todo",
"sphinx.ext.viewcode",
"sphinx_fontawesome",
"myst_parser",
"pydata_sphinx_theme",
"sphinx.ext.doctest",
Expand Down
9 changes: 4 additions & 5 deletions docs/source/contribution_guide/index.rst
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
Contribution Guide
==================

Thank you for contributing to aiaccel!
This document introduces how to contribute.
Thank you for contributing to aiaccel! This document introduces how to contribute.

.. toctree::
:maxdepth: 2
:maxdepth: 2

issues
pull_requests
issues
pull_requests
4 changes: 2 additions & 2 deletions docs/source/contribution_guide/issues.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
When you find any problems or have requests for new features, please first check to ensure that there is no duplicate issues already posted.
We usually use Japanese for internal development, but we are more than happy to communicate with you in English.

### Bug report
## Bug report
A bug report should briefly summarize the following details:
* What the bug is
* Steps to reproduce the bug
* What you expected to happen
* The execution environment

### Feature request
## Feature request

A feature request should briefly summarize the following details:

Expand Down
17 changes: 10 additions & 7 deletions docs/source/contribution_guide/pull_requests.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

When you want to the modified code to be reflected in the repository, please execute pull request.

### Procedures
## Procedures

- Please fork aiaccel repository on GitHub.
- After forking, run `git clone` command for aiaccel repository.
Expand All @@ -11,7 +11,7 @@ When you want to the modified code to be reflected in the repository, please exe
git clone https://github.com/[YOUR USERNAME]/aiaccel.git
~~~

### Development
## Development
- Update a local repository to the latest version.

~~~bash
Expand All @@ -31,16 +31,16 @@ git checkout -b feature/add-new-feature
- The message should be written in such a way that their contents can be understood without refering code.


### Submitting
## Submitting

Before submit *Pull request*, confirm the following:
- Did you discuss it with other developer on issues in advance?
- Can it be distributed under the MIT licence?
- Is there appropriate [unit tests](#test)?
- Can the [unit tests](#test) be run on local?
- Is there appropriate [unit tests](test) ?
- Can the [unit tests](test) be run on local?
- Does the public function have a docstring?
- Can the [documentation](#documentation-wip) be rendered correctly?
- Is the [coding style](#coding-style) appropriate?
- Can the [documentation](documentation-wip) be rendered correctly?
- Is the [coding style](coding-style) appropriate?
- Is the commit message appropriate?
- For larger commit, please provide the example (docs/source/examples) and the description of module level.
- If you are adding complied codes, have you modified setup.py?
Expand Down Expand Up @@ -71,6 +71,7 @@ git push origin feature/add-new-feature
- When updating codes in the pull request, please commit the changes in the local repository and push the changes to the fork only if they have been successfully tested in the local environment.
- If the pull request has been reviewed and approved by at least one member of the aiaccel development team, it will be merged into the main branch.

(documentation-wip)=
# Documentation (WIP)

## Docstrings
Expand Down Expand Up @@ -110,6 +111,7 @@ make gettext
sphinx-intl update -p build/gettext -l en -l ja
~~~

(test)=
# Test

## Adding tests
Expand Down Expand Up @@ -166,6 +168,7 @@ pytest --cov=aiaccel
pytest --cov=aiaccel --cov-branch
~~~

(coding-style)=
# Coding style

## Basic rules
Expand Down
69 changes: 32 additions & 37 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
@@ -1,76 +1,71 @@
.. aiaccel-dev documentation master file, created by
sphinx-quickstart on Mon Jan 18 15:46:13 2021.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.

..
aiaccel-dev documentation master file, created by
sphinx-quickstart on Mon Jan 18 15:46:13 2021.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.

Aiaccel
=======

AIST toolkit for accelerating machine learning research.


:octicon:`cpu;1em;sd-text-primary` High-Performance Computing (HPC)
Intended to use in the HPC clusters including AI Bridging Cloud Infrastructure (ABCI).
Intended to use in the HPC clusters including AI Bridging Cloud Infrastructure
(ABCI).

:octicon:`server;1em;sd-text-primary` Highly Modular Design
Designed to let you pick up any part of aiaccel with minimal dependencies as you prefer.
Designed to let you pick up any part of aiaccel with minimal dependencies as you
prefer.

:octicon:`zap;1em;sd-text-primary` High Compatibility
Compatible with the modern standard frameworks such as PyTorch Lightning and Optuna.

Compatible with the modern standard frameworks such as PyTorch Lightning and Optuna.

.. grid::

.. grid-item-card:: PyTorch/Lightning Toolkit
:link: api_reference/torch.html

Training toolkit for HPC clusters.
.. grid-item-card:: PyTorch/Lightning Toolkit
:link: api_reference/torch.html

.. grid-item-card:: Hyperparameter Optimization (HPO)
:link: api_reference/hpo.html

Ready-to-use HPO algorithms/tools.
Training toolkit for HPC clusters.

.. grid-item-card:: Hyperparameter Optimization (HPO)
:link: api_reference/hpo.html

Ready-to-use HPO algorithms/tools.

Getting Started
--------
---------------

.. toctree::
:maxdepth: 2

getting_started.md
:maxdepth: 2

getting_started.md

User Guide
--------
----------

.. toctree::
:maxdepth: 2

user_guide/index.rst
:maxdepth: 2

user_guide/index.rst

API Reference
--------

-------------

.. toctree::
:maxdepth: 2

api_reference/index.rst
:maxdepth: 2

api_reference/index.rst

Contribution Guide
--------
------------------

.. toctree::
:maxdepth: 2

contribution_guide/index.rst
:maxdepth: 2

contribution_guide/index.rst

Acknowledgments
--------
* Part of this work was developed under a commissioned project of the New Energy and Industrial Technology Development Organization (NEDO).
---------------

- Part of this work was developed under a commissioned project of the New Energy and
Industrial Technology Development Organization (NEDO).
3 changes: 2 additions & 1 deletion docs/source/user_guide/hpo.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Optimizing Your Hyperparameters
===============================

Hyperparameter optimization (HPO) is an indispensable step to make it work in real world.
Hyperparameter optimization (HPO) is an indispensable step to make it work in real
world.

(WIP)
Loading
Loading