You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Chemical Representation Learning for Toxicity Prediction
7
-
6
+
## Chemical Representation Learning for Toxicity Prediction
8
7
9
8
PyTorch implementation related to the paper *Chemical Representation Learning for Toxicity Prediction* ([Born et al, 2023, *Digital Discovery*](https://pubs.rsc.org/en/content/articlehtml/2023/dd/d2dd00099g)).
10
-
## Training your own model
11
9
12
-
The library itself has few dependencies (see [setup.py](setup.py)) with loose requirements.
10
+
# Inference
11
+
We released pretrained models for the Tox21, the ClinTox and the SIDER dataset.
12
+
13
+
## Demo with UI
14
+
🤗 A gradio demo with a simple UI is available on [HuggingFace spaces](https://huggingface.co/spaces/GT4SD/molecular_properties)
15
+

16
+
17
+
## Python API
18
+
The pretrained models are available via the [GT4SD](https://github.com/GT4SD), the Generative Toolkit for Scientific Discovery. See the paper [here](https://arxiv.org/abs/2207.03928).
19
+
We recommend to use [GT4SD](https://github.com/GT4SD/gt4sd-core) for inference. Once you install that library, use as follows:
20
+
```py
21
+
from gt4sd.properties import PropertyPredictorRegistry
models params/mca.json test --embedding_path data/smiles_vae_embeddings.pkl
54
+
(toxsmi) $ python3 scripts/train_tox.py \
55
+
--train data/tox21_train.csv \
56
+
--test data/tox21_score.csv \
57
+
--smi data/tox21.smi \
58
+
--params params/mca.json \
59
+
--model path_to_model_folder \
60
+
--name debug
32
61
```
33
62
63
+
**Features**:
64
+
- Set ```--finetune``` to the path to a `.pt` file to start from a pretrained model
65
+
- Set ```--embedding_path``` to the path of pretrained embeddings
66
+
34
67
Type `python scripts/train_tox.py -h` for further help.
35
68
36
-
## Inference (using our pretrained models)
37
-
Several of our trained models are available via the [GT4SD](https://github.com/GT4SD), the Generative Toolkit for Scientific Discovery. See the paper [here](https://arxiv.org/abs/2207.03928).
38
-
We recommend to use [GT4SD](https://github.com/GT4SD/gt4sd-core) for inference. Once you install that library, use as follows:
39
-
```py
40
-
from gt4sd.properties import PropertyPredictorRegistry
0 commit comments