Skip to content

Commit

Permalink
Merge pull request #108 from y0z/feature/update-image-description-in-…
Browse files Browse the repository at this point in the history
…tutorial

Update description for images in tutorial
  • Loading branch information
HideakiImamura authored Jul 29, 2024
2 parents 73892d5 + 3dc869d commit 348694f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions recipes/002_registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
| ├── (example.py)
| ├── (requirements.txt)
| └── (images)
| ├── (thumbnail.png)
| └── (screenshot.png)
| ├── (figure1.png)
| └── (numerical_results.png)
An implemented algorithm should be put in the corresponding directory, e.g., a sampler should be put in the `samplers` directory.
In the `samplers` directory, you should create a directory with a unique identifier.
Expand All @@ -38,7 +38,7 @@
- `LICENSE`: A license file. This file must contain the license of your algorithm. It should be the MIT license in the alpha version of OptunaHub.
- `example.py`: This is optional. This file should contain a simple example of how to use your algorithm (Example: `example.py for Simulated Annealing Sampler <https://github.com/optuna/optunahub-registry/blob/main/package/samplers/simulated_annealing/example.py>`_).
- `requirements.txt`: This is optional. A file that contains the additional dependencies of your algorithm. If there are no additional dependencies other than Optuna and OptunaHub, you do not need to create this file.
- `images`: This is optional. A directory that contains images. The images in this directory will be used the `web page of OptunaHub <https://hub.optuna.org/>`_. `thumbnail.png` will be used as a thumbnail in the web page. Note that `README.md` can also refer to image files, e.g. `images/screenshot.png`, in this directory.
- `images`: This is optional. A directory that contains images. Only relative references to images in this directory are allowed in README.md, e.g., ``![Numrical Results](images/numerical_results.png)``, and absolute paths to images are not allowed. The first image that appears in README.md will be used as the thumbnail.
All files must pass linter and formetter checks to be merged to the optunahub-registry repository.
You can check them by running the `pre-commit <https://pre-commit.com/>`__ tool as follows.
Expand Down

0 comments on commit 348694f

Please sign in to comment.