Skip to content

Commit 45547ea

Browse files
author
Sarah Krebs
committed
Changes from review
1 parent eda83c1 commit 45547ea

File tree

13 files changed

+64
-88
lines changed

13 files changed

+64
-88
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
- Fix errors due to changing inputs before runselection (#64).
2121
- For fANOVA, remove constant hyperparameters from configspace (#9).
2222

23+
## Documentation
24+
- Add How to Contribute section.
25+
- Expand documentation for partial dependence plugin.
26+
2327
## Version-Updates
2428
- Black version from 23.1.0 to 23.3.0
2529
- Mypy from 0.930 to 1.5.1

deepcave/plugins/hyperparameter/importances.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,10 @@ def get_filter_layout(register: Callable) -> List[html.Div]:
147147
html.Div(
148148
[
149149
dbc.Label("Budgets"),
150-
help_button("The hyperparameters are sorted by the highest budget."),
150+
help_button(
151+
"Budget refers to the multi-fidelity budget. "
152+
"The hyperparameters are sorted by the highest budget."
153+
),
151154
dbc.Checklist(id=register("budget_ids", ["value", "options"]), inline=True),
152155
]
153156
),

deepcave/plugins/hyperparameter/pdp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ 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."
88+
"Budget refers to the multi-fidelity budget. "
8989
"Combined budget means that the trial on the highest"
90-
" evaluated budget is used.\n\n"
90+
" evaluated budget is used. \n "
9191
"Note: Selecting combined budget might be misleading if"
9292
" a time objective is used. Often, higher budget take "
9393
" longer to evaluate, which might negatively influence "

deepcave/plugins/hyperparameter/symbolic_explanations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ 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."
92+
"Budget refers to the multi-fidelity budget. "
9393
"Combined budget means that the trial on the highest"
94-
" evaluated budget is used.\n\n"
94+
" evaluated budget is used. \n "
9595
"Note: Selecting combined budget might be misleading if"
9696
" a time objective is used. Often, higher budget take "
9797
" longer to evaluate, which might negatively influence "

deepcave/plugins/objective/configuration_cube.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ 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."
84+
"Budget refers to the multi-fidelity budget. "
8585
"Combined budget means that the trial on the highest"
86-
" evaluated budget is used.\n\n"
86+
" evaluated budget is used. \n "
8787
"Note: Selecting combined budget might be misleading if"
8888
" a time objective is used. Often, higher budget take "
8989
" longer to evaluate, which might negatively influence "

deepcave/plugins/objective/cost_over_time.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ def get_input_layout(register: Callable) -> List[dbc.Row]:
115115
[
116116
dbc.Label("Budget"),
117117
help_button(
118+
"Budget refers to the multi-fidelity budget. "
118119
"Combined budget means that the trial on the highest evaluated "
119120
"budget is used."
120121
),

deepcave/plugins/objective/parallel_coordinates.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,9 @@ 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 evaluated"
78-
" budget is used.\n\n"
79+
" budget is used. \n "
7980
"Note: Selecting combined budget might be misleading if a time"
8081
" objective is used. Often, higher budget take longer to evaluate,"
8182
" which might negatively influence the results."

deepcave/plugins/objective/pareto_front.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,9 @@ def get_input_layout(register: Callable) -> List[Any]:
127127
[
128128
dbc.Label("Budget"),
129129
help_button(
130-
"Combined budget means that the trial on the highest evaluated budget is "
131-
"used.\n\n"
130+
"Budget refers to the multi-fidelity budget. "
131+
"Combined budget means that the trial on the highest"
132+
" evaluated budget is used. \n "
132133
"Note: Selecting combined budget might be misleading if a time objective "
133134
"is used. Often, higher budget take longer to evaluate, which might "
134135
"negatively influence the results."

deepcave/plugins/summary/footprint.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ def get_input_layout(register: Callable) -> List[Any]:
7474
[
7575
dbc.Label("Budget"),
7676
help_button(
77-
"Budget refers to the Multi-Fidelity budget."
77+
"Budget refers to the multi-fidelity budget. "
7878
"Combined budget means that the trial on the highest"
79-
" evaluated budget is used.\n\n"
79+
" evaluated budget is used. \n "
8080
"Note: Selecting combined budget might be misleading if"
8181
" a time objective is used. Often, higher budget take "
8282
" longer to evaluate, which might negatively influence "

docs/how_to_contribute.rst

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
==================
22
How to Contribute
33
==================
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.
4+
We would appreciate your help in making this project better.
5+
Whether it's a bug report, new feature, correction, or additional documentation, we greatly value feedback and contributions from our community.
6+
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.
7+
If you'd like to work on a bug or new feature idea, or have a correction or addition to the documentation, please open a new issue and setup a development workflow to work on the issue and submit a pull request.
58

69
.. _contribute_fork_project:
710

@@ -20,9 +23,10 @@ The development workflow is based on the "fork-and-pull" Git workflow. A full de
2023

2124
.. _contribute_unit_tests:
2225

23-
Extend Unit Tests
26+
Extend Unit Tests
2427
------------------
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:
28+
When adding new features or making changes to the codebase, it is important to add unit tests and check for mistakes revealed by pre-existing test cases. This project uses `unittest` for testing.
29+
To run the test suite, you can use the following command:
2630

2731
.. code-block:: bash
2832
@@ -34,7 +38,8 @@ When adding new features or making changes to the codebase, it is important to a
3438
Update Documentation
3539
---------------------
3640

37-
The documentation is written in reStructuredText and uses Sphinx to generate HTML documentation. To build the documentation, use the following command:
41+
The documentation is written in reStructuredText and uses Sphinx to generate HTML documentation.
42+
To build the documentation, you can use the following command:
3843

3944
.. code-block:: bash
4045
@@ -45,20 +50,26 @@ The documentation is written in reStructuredText and uses Sphinx to generate HTM
4550

4651
Pre-Commit Hook
4752
---------------
48-
Before submitting a pull request, you should run the pre-commit hook to check for formatting errors and run the test suite.
53+
Before submitting a pull request, you should run the pre-commit hook to check for formatting errors and run the test suite, e.g. via
54+
55+
.. code-block:: bash
56+
57+
pre-commit run --all-files
4958
5059
.. _contribute_pull_request:
5160

5261
Create Pull Request
5362
--------------------
5463

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:
64+
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.
65+
Before submitting a pull request, please make sure of the following:
5666

57-
- Make sure the you reference the issue in the pull request.
67+
- Make sure to reference the issue in the pull request.
5868
- The pull request should include tests for the new feature or bug fix.
5969
- The pull request should include documentation for the new feature or bug fix.
6070
- All tests should pass.
61-
- Make sure to select the correct source and destination repositories and according branches.
71+
- Make sure to select the correct source and destination repositories and according branches, usually your fork to the main repository's `development` branch.
72+
- Add the change to the CHANGELOG.md file.
6273
- The pull request should include a description of the change and the reason for the change.
6374

6475

0 commit comments

Comments
 (0)