Skip to content

Commit 0a117be

Browse files
committed
update readme
1 parent e333a21 commit 0a117be

File tree

5 files changed

+32
-32
lines changed

5 files changed

+32
-32
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22
<img src="assets/logo.png" alt="torch-molecule logo" width="600"/>
33
</p>
44

5+
<p align="center">
6+
<a href="https://github.com/liugangcode/torch-molecule">
7+
<img src="https://img.shields.io/badge/GitHub-Repository-blue?logo=github" alt="GitHub Repository">
8+
</a>
9+
<a href="https://liugangcode.github.io/torch-molecule/">
10+
<img src="https://img.shields.io/badge/Documentation-Online-brightgreen?logo=readthedocs" alt="Documentation">
11+
</a>
12+
</p>
13+
514
<p align="center">
615
<b>Deep learning for molecular discovery with a simple sklearn-style interface</b>
716
</p>

torch_molecule/generator/graphga/modeling_graph_ga.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class GraphGAMolecularGenerator(BaseMolecularGenerator):
2525
Paper: `A Graph-Based Genetic Algorithm and Its Application to the Multiobjective Evolution of Median Molecules
2626
<https://pubs.acs.org/doi/full/10.1021/ci034290p>`_
2727
28-
Reference code: `https://github.com/wenhao-gao/mol_opt/blob/main/main/graph_ga/run.py`_
28+
Reference code: https://github.com/wenhao-gao/mol_opt/blob/main/main/graph_ga/run.py
2929
3030
:param num_task: Number of properties to condition on. Set to 0 for unconditional generation. Default is 0.
3131
:type num_task: int

torch_molecule/predictor/grea/modeling_grea.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class GREAMolecularPredictor(GNNMolecularPredictor):
2323
Paper: `Graph Rationalization with Environment-based Augmentations
2424
<https://dl.acm.org/doi/10.1145/3534678.3539347>`_
2525
26-
Reference Code: `https://github.com/liugangcode/GREA`_
26+
Reference Code: https://github.com/liugangcode/GREA
2727
2828
:param gamma: GREA-specific parameter. Default is 0.4.
2929
:type gamma: float

torch_molecule/predictor/sgir/modeling_sgir.py

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -20,26 +20,26 @@
2020

2121
@dataclass
2222
class SGIRMolecularPredictor(GREAMolecularPredictor):
23-
"""This predictor trains the GREA model based on pseudo-labeling and data augmentation.
24-
Paper: Semi-Supervised Graph Imbalanced Regression (https://dl.acm.org/doi/10.1145/3580305.3599497)
25-
Reference Code: https://github.com/liugangcode/SGIR
26-
27-
Parameters
28-
----------
29-
num_anchor : int, default=10
30-
Number of anchor points used to split the label space during pseudo-labeling
31-
warmup_epoch : int, default=20
32-
Number of epochs to train before starting pseudo-labeling and data augmentation
33-
labeling_interval : int, default=5
34-
Interval (in epochs) between pseudo-labeling steps
35-
augmentation_interval : int, default=5
36-
Interval (in epochs) between data augmentation steps
37-
top_quantile : float, default=0.1
38-
Quantile threshold for selecting high confidence predictions during pseudo-labeling
39-
label_logscale : bool, default=False
40-
Whether to use log scale for the label space during pseudo-labeling and data augmentation
41-
lw_aug : float, default=1
42-
Weight for the data augmentation loss
23+
"""
24+
This predictor trains the GREA model based on pseudo-labeling and data augmentation.
25+
26+
Paper: `Semi-Supervised Graph Imbalanced Regression <https://dl.acm.org/doi/10.1145/3580305.3599497>`_
27+
Reference Code: `SGIR GitHub <https://github.com/liugangcode/SGIR>`_
28+
29+
:param num_anchor: Number of anchor points used to split the label space during pseudo-labeling
30+
:type num_anchor: int, default=10
31+
:param warmup_epoch: Number of epochs to train before starting pseudo-labeling and data augmentation
32+
:type warmup_epoch: int, default=20
33+
:param labeling_interval: Interval (in epochs) between pseudo-labeling steps
34+
:type labeling_interval: int, default=5
35+
:param augmentation_interval: Interval (in epochs) between data augmentation steps
36+
:type augmentation_interval: int, default=5
37+
:param top_quantile: Quantile threshold for selecting high confidence predictions during pseudo-labeling
38+
:type top_quantile: float, default=0.1
39+
:param label_logscale: Whether to use log scale for the label space during pseudo-labeling and data augmentation
40+
:type label_logscale: bool, default=False
41+
:param lw_aug: Weight for the data augmentation loss
42+
:type lw_aug: float, default=1
4343
"""
4444
# SGIR-specific parameters
4545
num_anchor: int = 10

torch_molecule/utils/search.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,7 @@ class ParameterType(Enum):
1313
LOG_FLOAT = "log_float" # Uses suggest_float with log=True for exponential scale
1414

1515
class ParameterSpec(NamedTuple):
16-
"""Specification for a hyperparameter including its type and valid range/options.
17-
18-
Attributes
19-
----------
20-
param_type : ParameterType
21-
The type of parameter (categorical, integer, float, log_float)
22-
value_range : Union[Tuple[Any, Any], List[Any]]
23-
For numerical parameters: (min_value, max_value)
24-
For categorical parameters: list of possible values
25-
"""
16+
"""Specification for a hyperparameter including its type and valid range/options."""
2617

2718
param_type: ParameterType
2819
value_range: Union[Tuple[Any, Any], List[Any]]

0 commit comments

Comments
 (0)