Skip to content

Commit eda83c1

Browse files
authored
Merge pull request #121 from LukasFehring/documentation-review
Documentation review
2 parents adda47e + 1e19cde commit eda83c1

File tree

12 files changed

+152
-7
lines changed

12 files changed

+152
-7
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Following features are provided:
1616
- A large collection of plugins to explore multiple areas like performance, hyperparameter and
1717
budget analysis.
1818
- Save your runs using DeepCAVE's native recorder.
19-
- Support for many optimizers using converter (e.g., DeepCAVE, SMAC and BOHB).
19+
- Support for many optimizers using converters (e.g., DeepCAVE, SMAC and BOHB).
2020
- Select runs directly from a working directory in the interface.
2121
- Select groups of runs for combined analysis.
2222
- Modularized plugin structure with access to selected runs/groups to provide maximal flexibility.
@@ -43,6 +43,7 @@ pip install DeepCAVE
4343
If you want to contribute to DeepCAVE use the following steps instead:
4444
```bash
4545
git clone https://github.com/automl/DeepCAVE.git
46+
cd DeepCAVE
4647
conda create -n DeepCAVE python=3.9
4748
conda activate DeepCAVE
4849
conda install -c anaconda swig

deepcave/plugins/hyperparameter/pdp.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ def get_input_layout(register: Callable) -> List[dbc.Row]:
8585
[
8686
dbc.Label("Budget"),
8787
help_button(
88+
"Budget refers to the Multi-Fidelity budget."
8889
"Combined budget means that the trial on the highest"
8990
" evaluated budget is used.\n\n"
9091
"Note: Selecting combined budget might be misleading if"

deepcave/plugins/hyperparameter/symbolic_explanations.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ def get_input_layout(register: Callable) -> List[Union[dbc.Row, html.Details]]:
8989
[
9090
dbc.Label("Budget"),
9191
help_button(
92+
"Budget refers to the Multi-Fidelity budget."
9293
"Combined budget means that the trial on the highest"
9394
" evaluated budget is used.\n\n"
9495
"Note: Selecting combined budget might be misleading if"

deepcave/plugins/objective/configuration_cube.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ def get_input_layout(register: Callable) -> List[dbc.Row]:
8181
[
8282
dbc.Label("Budget"),
8383
help_button(
84+
"Budget refers to the Multi-Fidelity budget."
8485
"Combined budget means that the trial on the highest"
8586
" evaluated budget is used.\n\n"
8687
"Note: Selecting combined budget might be misleading if"

deepcave/plugins/summary/footprint.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ def get_input_layout(register: Callable) -> List[Any]:
7474
[
7575
dbc.Label("Budget"),
7676
help_button(
77+
"Budget refers to the Multi-Fidelity budget."
7778
"Combined budget means that the trial on the highest"
7879
" evaluated budget is used.\n\n"
7980
"Note: Selecting combined budget might be misleading if"

docs/getting_started.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ to see the dashboard in action:
3939
.. image:: images/plugins/general.png
4040

4141

42+
Displaying the data is done via plugins. You can select the plugins you want to use in the menu on the left.
43+
This is further explained in the :ref:`plugins<Displaying Data with Plugins>` section.
44+
4245
DeepCAVE uses runs to interprete data. A run is a collection of trials
4346
(a configuration with associated costs). Once valid runs (see :ref:`converter<Converters>`) are
4447
found, you can select them to analyze them further. After selecting runs, you can also add them to

docs/how_to_contribute.rst

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
==================
2+
How to Contribute
3+
==================
4+
We would appreciate your help in making this project better. Whether it's a bug report, new feature, correction, or additional documentation, we greatly value feedback and contributions from our community. If you think you have found a bug, or have a new feature idea, please check for `github issues <github_issues_>`_ and create a new issue if needed. For new feature ideas, open a new issue and setup a development workflow to work on the issue. If you have a correction or addition to the documentation, please submit a pull request.
5+
6+
.. _contribute_fork_project:
7+
8+
Setup Development Workflow
9+
---------------------------
10+
The development workflow is based on the "fork-and-pull" Git workflow. A full description of the workflow can be found `here <fork_and_pull_>`_. To contribute to the project, follow these steps:
11+
12+
1. Fork the project.
13+
2. Install the project in development mode as described in the :ref:`installation` section.
14+
3. Create a new branch for the new feature on your own fork, note that all changes should be based on the `development` branch.
15+
4. Make your changes and commit them to your branch.
16+
5. Push your changes to your fork.
17+
6. Open a pull request from your fork to the main repository's `development` branch.
18+
19+
20+
21+
.. _contribute_unit_tests:
22+
23+
Extend Unit Tests
24+
------------------
25+
When adding new features or making changes to the codebase, it is important to add unit tests and check for mistakes revealed by preexisting test cases. This project uses `unittest` for testing. To run the test suite, use the following command:
26+
27+
.. code-block:: bash
28+
29+
python -m unittest discover -s tests
30+
31+
32+
.. _contribute_update_documentation:
33+
34+
Update Documentation
35+
---------------------
36+
37+
The documentation is written in reStructuredText and uses Sphinx to generate HTML documentation. To build the documentation, use the following command:
38+
39+
.. code-block:: bash
40+
41+
make docs
42+
43+
44+
.. _contribute_pre_commit_hook:
45+
46+
Pre-Commit Hook
47+
---------------
48+
Before submitting a pull request, you should run the pre-commit hook to check for formatting errors and run the test suite.
49+
50+
.. _contribute_pull_request:
51+
52+
Create Pull Request
53+
--------------------
54+
55+
After making changes to the codebase, you can submit a pull request. Your pull request will be reviewed by the maintainers, and if everything looks good, it will be merged. Before submitting a pull request, please make sure of the following:
56+
57+
- Make sure the you reference the issue in the pull request.
58+
- The pull request should include tests for the new feature or bug fix.
59+
- The pull request should include documentation for the new feature or bug fix.
60+
- All tests should pass.
61+
- Make sure to select the correct source and destination repositories and according branches.
62+
- The pull request should include a description of the change and the reason for the change.
63+
64+
65+
.. _github_issues: https://github.com/automl/DeepCAVE/issues
66+
.. _fork_and_pull: https://reflectoring.io/github-fork-and-pull/

docs/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Home
1414
examples/index
1515
plugins/index
1616
converters
17+
how_to_contribute
1718
api
1819
glossary
1920
faq

docs/plugins/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Plugins
2-
=======
1+
Displaying Data with Plugins
2+
============================
33

44
.. toctree::
55
:hidden:

docs/plugins/overview.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ This plugin is capable of answering following questions:
2323
* Is the configuration space as expected?
2424
* How many trials have been successful/unsuccessful?
2525
* Why did certain trials crash?
26-
* On which budgets were the configurations evaluated?
26+
* On which Multi Fidelity budgets were the configurations evaluated?
2727

2828

2929
Quick Information
@@ -36,7 +36,9 @@ the runs were last updated and a handy quick link to the best **Configuration**.
3636
Meta
3737
----
3838
Next we show some meta information regarding your runs. Notably, you can see information such as the
39-
possible **budget** allocations that were considered during the run.
39+
possible **budget** allocations that were considered during the run. The **budget** is the amount of
40+
resources that were allocated to a configuration as it was beeing evaluated using a Multi-Fidelity
41+
Approach.
4042

4143

4244
Objectives

0 commit comments

Comments
 (0)