Skip to content

Commit ba13548

Browse files
authored
Merge pull request #103 from UCD-BDLab/quick-start-for-biologists
v1.2.2 release: Updated docs + depedency bug fix
2 parents 3b46769 + 7adefc6 commit ba13548

28 files changed

Lines changed: 231 additions & 2443 deletions

CHANGELOG.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/).
77

8+
## [1.2.2] - 2025-12-29
9+
10+
### Documentation
11+
- **Updated Index**: index now includes tables with examples for feature selection.
12+
- **Getting Started for Biologists**: An updated page which leverages google colab for a more user friendly walkthrough of BioNeuralNet.
13+
14+
### Ray Tune Patch
15+
- **Ray tune**: Updated from `ray[tune,train]>=2.46.0` to `ray[tune,train]>=2.46.0, <2.53.0` due to an recent release on December 20, 2025 which breaks some functionality. This temporately fixes the issue.
16+
17+
### New DPMON param: `tune_trails`
18+
- This parameter gives users the ability to dictate how many ray tune trials to run. This works alongside the Dynamic Sampling from `v1.2.1`.
19+
820
## [1.2.1] - 2025-11-30
921

1022
### Dependencies
@@ -227,4 +239,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
227239
- **Bug Fixes**:
228240
  - Resolved incorrect handling of `tune=True` in Hybrid Louvain.
229241
  - Addressed inconsistencies in `GraphEmbedding` parameter parsing.
230-
  - Fixed dataset loading issues in example scripts.
242+
  - Fixed dataset loading issues in example scripts.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
[![Documentation](https://img.shields.io/badge/docs-read%20the%20docs-blue.svg)](https://bioneuralnet.readthedocs.io/en/latest/)
99
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.17503083.svg)](https://doi.org/10.5281/zenodo.17503083)
1010

11-
## Welcome to BioNeuralNet 1.2.1
11+
## Welcome to BioNeuralNet 1.2.2
1212

1313
![BioNeuralNet Logo](assets/LOGO_TB.png)
1414

bioneuralnet/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* `utils`: Utilities for logging, reproducibility, graph generation, and data processing.
2424
"""
2525

26-
__version__ = "1.2.1"
26+
__version__ = "1.2.2"
2727

2828
# submodules to enable direct imports such as `from bioneuralnet import utils`
2929
from . import utils

bioneuralnet/downstream_task/dpmon.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ class DPMON:
6969
lr (float): Learning rate for the optimizer.
7070
weight_decay (float): L2 weight decay (regularization) coefficient.
7171
tune (bool): If True, perform hyperparameter tuning before final training.
72+
tune_trails (int): Number of trials to perform if tune=True.
7273
gpu (bool): If True, use GPU if available.
7374
cv (bool): If True, use K-fold cross-validation; otherwise use repeated train/test splits.
7475
cuda (int): CUDA device index to use when gpu=True.
@@ -98,6 +99,7 @@ def __init__(
9899
lr: float = 1e-1,
99100
weight_decay: float = 1e-4,
100101
tune: bool = False,
102+
tune_trails: int = 10,
101103
gpu: bool = False,
102104
cv: bool = False,
103105
cuda: int = 0,
@@ -156,6 +158,7 @@ def __init__(
156158
self.lr = lr
157159
self.weight_decay = weight_decay
158160
self.tune = tune
161+
self.tune_trails = tune_trails
159162
self.gpu = gpu
160163
self.cuda = cuda
161164
self.seed = seed
@@ -205,6 +208,7 @@ def run(self) -> Tuple[pd.DataFrame, object, torch.Tensor | None]:
205208
"gpu": self.gpu,
206209
"cuda": self.cuda,
207210
"tune": self.tune,
211+
"tune_trials": self.tune_trails,
208212
"seed": self.seed,
209213
"seed_trials": self.seed_trials,
210214
"cv": self.cv,
@@ -892,8 +896,8 @@ def short_dirname_creator(trial):
892896

893897
gpu_per_trial = 0.05 if use_gpu else 0.0
894898

895-
num_samples = 50
896-
max_retries = 5
899+
num_samples = dpmon_params['tune_trials']
900+
max_retries = 4
897901

898902
seed_trials = dpmon_params.get("seed_trials", False)
899903

@@ -916,6 +920,7 @@ def short_dirname_creator(trial):
916920
config=pipeline_configs,
917921
num_samples=num_samples,
918922
verbose=0,
923+
log_to_file=True,
919924
scheduler=scheduler,
920925
stop=stopper,
921926
name="tune_dp",

docs/source/Quick_Start.ipynb

Lines changed: 33 additions & 125 deletions
Large diffs are not rendered by default.

docs/source/_autosummary/bioneuralnet.clustering.correlated_louvain.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ bioneuralnet.clustering.correlated\_louvain
1919
.. autosummary::
2020

2121
ASHAScheduler
22-
Any
2322
CLIReporter
2423
CorrelatedLouvain
2524
PCA

docs/source/_autosummary/bioneuralnet.clustering.correlated_pagerank.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ bioneuralnet.clustering.correlated\_pagerank
1717
.. autosummary::
1818

1919
ASHAScheduler
20-
Any
2120
CLIReporter
2221
CorrelatedPageRank
2322
PCA

docs/source/_autosummary/bioneuralnet.downstream_task.subject_representation.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ bioneuralnet.downstream\_task.subject\_representation
2121
.. autosummary::
2222

2323
ASHAScheduler
24-
Any
2524
AutoEncoder
2625
CLIReporter
2726
PCA

docs/source/_autosummary/bioneuralnet.external_tools.smccnet.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ bioneuralnet.external\_tools.smccnet
1515

1616
.. autosummary::
1717

18-
Any
1918
Path
2019
SmCCNet
2120

58.5 KB
Loading

0 commit comments

Comments
 (0)