From eb02b66d9fedac7b76442ea207808bb33d6268a0 Mon Sep 17 00:00:00 2001 From: y0z Date: Tue, 2 Jul 2024 16:20:06 +0900 Subject: [PATCH] Update tutorial and template. --- recipes/002_registration.py | 4 ++-- template/README.md | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/recipes/002_registration.py b/recipes/002_registration.py index 2df42a69..be20748d 100644 --- a/recipes/002_registration.py +++ b/recipes/002_registration.py @@ -16,9 +16,9 @@ | └── YOUR_PACKAGE_NAME (you need to create this directory and its contents) | ├── YOUR_ALGORITHM_NAME.py | ├── __init__.py -| ├── (example.py) | ├── README.md | ├── LICENSE +| ├── (example.py) | ├── (requirements.txt) | └── (images) | ├── (thumbnail.png) @@ -34,9 +34,9 @@ - `YOUR_ALGORITHM_NAME.py`: The implementation of your algorithm. - `__init__.py`: An initialization file. This file must implement your algorithm or import its implementation from another file, e.g., `YOUR_ALGORITHM_NAME.py`. -- `example.py`: This file should contain a simple example of how to use your algorithm (Example: `example.py for Simulated Annealing Sampler `_). - `README.md`: A description of your algorithm. This file is used to create an `web page of OptunaHub `_. Let me explain the format of the `README.md` file later. - `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 `_). - `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 `_. `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. diff --git a/template/README.md b/template/README.md index a0c1a1fc..c38b61a1 100644 --- a/template/README.md +++ b/template/README.md @@ -37,3 +37,21 @@ Please fill in the code snippet to use the implemented feature here. ## Others Please fill in any other information if you have here by adding child sections (###). If there is no additional information, this section can be removed. + + \ No newline at end of file