-
Notifications
You must be signed in to change notification settings - Fork 620
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1143 from leoleojie/master
FEA: add W&B document
- Loading branch information
Showing
1 changed file
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
.. _header-n0: | ||
|
||
Use Weights & Biases | ||
==================== | ||
|
||
RecBole allows visualizing configs and metrics of different experiments | ||
with W&B. | ||
|
||
If you are new to W&B, please set up it first. | ||
|
||
1. Start with a W&B account. `Create one now → <http://app.wandb.ai>`__ | ||
|
||
2. Go to your project folder in your terminal and install library: | ||
``pip install wandb`` | ||
|
||
3. Inside your project folder, log in W&B: ``wandb login`` `your API | ||
key <https://wandb.ai/authorize>`__ | ||
|
||
You can start W&B in RecBole by passing ``--log_wandb=True`` as command | ||
line argument, or use config dict. One can also turn ``log_wandb: True`` | ||
in the ``overall.yaml`` file or provide it as external config file. | ||
|
||
**A Running Example:** | ||
|
||
You can run BPR model on ml-100k dataset with W&B as follow: | ||
|
||
.. code:: python | ||
python run_recbole.py --log_wandb=True | ||
Then, go to your W&B project, you can see the following page, which | ||
shows the change of metrics during the training and validation in each | ||
epoch. | ||
|
||
.. figure:: https://raw.githubusercontent.com/leoleojie/cloudimg/master/data/202202191625104.png | ||
:alt: | ||
|
||
You can also check the detailed configuration information and evaluation | ||
metrics. | ||
|
||
.. figure:: https://raw.githubusercontent.com/leoleojie/cloudimg/master/data/202202191625985.png | ||
:alt: | ||
|
||
W&B also allows you to compare these metrics and configs across | ||
different experiments in the same project. | ||
|
||
.. figure:: https://raw.githubusercontent.com/leoleojie/cloudimg/master/data/202202191648205.png | ||
:alt: | ||
|
||
.. figure:: https://raw.githubusercontent.com/leoleojie/cloudimg/master/data/202202191701276.png | ||
:alt: | ||
|
||
You can select different projects to experiment by modifying | ||
``wandb_project`` parameter, which defaults to ``'recbole'``. | ||
|
||
For more details about W&B, please refer to `Weights & Biases - | ||
Documentation <https://docs.wandb.ai/>`__. |