Skip to content

Commit 0bb29cc

Browse files
authored
Merge pull request #3 from CDDLeiden/docs
Update GitHub Pages dependencies: specify exact versions for improved…
2 parents 49e1611 + af4d97c commit 0bb29cc

7 files changed

Lines changed: 20 additions & 35 deletions

File tree

.github/workflows/gh-pages.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ jobs:
2727
steps:
2828
- name: Checkout
2929
uses: actions/checkout@v4
30+
with:
31+
fetch-depth: 0
3032
- name: Setup Python
3133
uses: actions/setup-python@v5
3234
with:
@@ -38,8 +40,12 @@ jobs:
3840
- name: Install dependencies
3941
run: |
4042
python -m pip install --upgrade pip
41-
pip install mkdocs-material mkdocstrings[python] mkdocs-git-revision-date-localized-plugin mkdocs-plugin-tags mike
43+
pip install "mkdocs>=1.5" "mkdocs-material>=9.5"
44+
pip install "mkdocstrings>=0.25" "mkdocstrings-python>=1.9" "mike>=2.0" "mkdocs-autorefs>=1.0" "mkdocs-git-revision-date-localized-plugin>=1.2"
45+
# pip install Markdown==3.10 Jinja2==3.1.6 pymdown-extensions==10.18 mkdocs==1.6.1 mkdocstrings==1.0.0 mkdocstrings-python==2.0.1 mike==2.1.3 mkdocs-autorefs==1.4.3 mkdocs-material==8.2.7 mkdocs-git-revision-date-localized-plugin==1.5.0 mkdocs-plugin-tags==1.0.2
4246
- name: Build site
47+
env:
48+
PYTHONPATH: ${{ github.workspace }}
4349
run: mkdocs build --strict
4450
- name: Upload artifact
4551
uses: actions/upload-pages-artifact@v3

docs/api/uqdd.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,9 @@ tags:
77

88
# uqdd package
99

10+
The top-level package overview is provided here. For detailed modules, see:
11+
- [Core Utils](../api/uqdd-utils.md)
12+
- [Data modules](../api/uqdd-data.md)
13+
- [Model modules](../api/uqdd-models.md)
14+
1015
::: uqdd

docs/changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ tags:
1717
- Configured GitHub Pages deployment workflow (`.github/workflows/gh-pages.yml`).
1818
- Enabled versioning support via `mike` plugin (optional).
1919
- Improved local strict builds by enabling `git-revision-date-localized` only on CI.
20+
21+
See also the [tags](tags.md) page for topic-based navigation.

docs/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,12 @@ Welcome to the UQDD documentation. This site covers installation, data pipeline,
1313
[Combining Bayesian and Evidential Uncertainty Quantification for Improved Bioactivity Modeling](https://pubs.acs.org/doi/10.1021/acs.jcim.5c01597)
1414

1515
## Highlights
16+
1617
- Hybrid UQ models: EOE (Ensemble of Evidential) and EMC (Evidential MC Dropout)
1718
- Baselines: Deep ensembles, MC-Dropout, and probabilistic neural networks
1819
- Papyrus++ datasets for xC50 and Kx bioactivity endpoints
1920
- Comprehensive evaluation: performance, calibration, probabilistic scoring, decision utility
2021

22+
See the [tags](tags.md) page for topics across the documentation.
23+
2124
Use the top navigation to get started.

docs/reference/mind-map.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ tags:
99

1010
The following mind map provides a high-level overview of the paper and the UQDD project:
1111

12-
![Mind Map](assets/MindMap.png)
12+
![Mind Map](../assets/MindMap.png)
1313

1414
For details, refer to the specific sections throughout the documentation.

mkdocs.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ plugins:
6666
- mkdocstrings:
6767
handlers:
6868
python:
69-
paths: ["uqdd"]
69+
paths: ['.']
7070
options:
7171
show_source: false
7272
docstring_style: numpy
@@ -79,10 +79,9 @@ plugins:
7979
show_root_heading: true
8080
show_signature: true
8181
heading_level: 2
82-
show_submodules: true
82+
show_submodules: false
8383
- mike
8484
- git-revision-date-localized:
85-
enabled_if_env: CI
8685
fallback_to_build_date: true
8786
enable_creation_date: true
8887
enable_git_follow: false

uqdd/models/pnn.py

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -259,9 +259,6 @@ def run_pnn(config: Optional[dict] = None) -> nn.Module: # uq: bool = False
259259
config : Optional[dict], optional
260260
Configuration dictionary for model training, by default None.
261261
262-
uq : bool
263-
Whether to use aleatoric uncertainty estimation, by default
264-
265262
Returns
266263
-------
267264
nn.Module
@@ -274,33 +271,6 @@ def run_pnn(config: Optional[dict] = None) -> nn.Module: # uq: bool = False
274271
logger=LOGGER,
275272
)
276273

277-
# if uq:
278-
# dataloaders = get_dataloader(config, device=DEVICE, logger=LOGGER)
279-
# preds, labels, alea_vars = predict(
280-
# best_model, dataloaders["test"], device=DEVICE
281-
# )
282-
# # Then comes the predict metrics part
283-
# metrics, plots, uct_logger = evaluate_predictions(
284-
# config, preds, labels, alea_vars, "pnn", LOGGER
285-
# )
286-
# # RECALIBRATION # Get Calibration / Validation Set
287-
# preds_val, labels_val, alea_vars_val = predict(
288-
# best_model, dataloaders["val"], device=DEVICE
289-
# )
290-
# iso_recal_model = recalibrate_model(
291-
# preds_val,
292-
# labels_val,
293-
# alea_vars_val,
294-
# preds,
295-
# labels,
296-
# alea_vars,
297-
# config=config,
298-
# uct_logger=uct_logger,
299-
# )
300-
# uct_logger.wandb_log()
301-
# wandb.finish()
302-
# return best_model, iso_recal_model, metrics, plots
303-
304274
return best_model
305275

306276

0 commit comments

Comments
 (0)