HuggingTaro commited on
Commit
bfe985f
·
verified ·
1 Parent(s): 03b0cac

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. README.md +130 -0
  2. best.pt +3 -0
  3. test_predictions.csv +0 -0
README.md ADDED
@@ -0,0 +1,130 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ language: en
4
+ tags:
5
+ - chemistry
6
+ - chemprop
7
+ - molecular-property-prediction
8
+ - spectroscopy
9
+ - fluorescence
10
+ - chromophore
11
+ - MPNN
12
+ - message-passing-neural-network
13
+ - multi-task
14
+ - regression
15
+ library_name: chemprop
16
+ pipeline_tag: tabular-regression
17
+ ---
18
+
19
+ # Chromophore Spectral Property Predictor (7 Properties)
20
+
21
+ A **Chemprop v2** multi-component MPNN model that predicts 7 spectroscopic properties of organic chromophores from molecular structure (SMILES) and solvent.
22
+
23
+ ## Model Description
24
+
25
+ - **Architecture**: MulticomponentMPNN (depth=4, hidden=400, FFN=400, dropout=0.15)
26
+ - **Parameters**: 1.1M
27
+ - **Framework**: Chemprop 2.2.1 (PyTorch Lightning)
28
+ - **Inputs**: Chromophore SMILES + Solvent SMILES
29
+ - **Training data**: 20,502 chromophore-solvent pairs from [Scientific Data publication](https://www.nature.com/articles/sdata201938)
30
+ - **Training**: 100 epochs on NVIDIA A100 GPU, masked loss for missing values
31
+
32
+ ## Predicted Properties
33
+
34
+ | Property | MAE | R² | Test Samples |
35
+ |----------|-----|----|-------------|
36
+ | Absorption max (nm) | 15.40 | 0.9503 | 1,739 |
37
+ | Emission max (nm) | 18.31 | 0.9212 | 1,847 |
38
+ | Quantum yield | 0.1232 | 0.6754 | 1,377 |
39
+ | abs FWHM (cm⁻¹) | 462.2 | 0.8247 | 664 |
40
+ | emi FWHM (cm⁻¹) | 383.6 | 0.7576 | 1,091 |
41
+ | log(ε/mol⁻¹ dm³ cm⁻¹) | 0.1403 | 0.8582 | 817 |
42
+ | Lifetime (ns) | 4.84 | 0.0834 | 685 |
43
+
44
+ **Note**: Lifetime prediction has very low R² and should not be relied upon.
45
+
46
+ ## Usage
47
+
48
+ ### Installation
49
+
50
+ ```bash
51
+ pip install chemprop>=2.0
52
+ ```
53
+
54
+ ### Prediction
55
+
56
+ ```bash
57
+ chemprop predict \
58
+ -i input.csv \
59
+ --model-paths best.pt \
60
+ -o predictions.csv \
61
+ -s Chromophore Solvent
62
+ ```
63
+
64
+ ### Input CSV format
65
+
66
+ ```csv
67
+ Chromophore,Solvent
68
+ CCN(CC)c1ccc2c(C)cc(=O)oc2c1,CCO
69
+ Nc1ccc2c(C(F)(F)F)cc(=O)oc2c1,CC#N
70
+ ```
71
+
72
+ ### Python API
73
+
74
+ ```python
75
+ import torch
76
+ from chemprop.models import MPNN
77
+ from chemprop.data import MoleculeDatapoint, MoleculeDataset, MulticomponentDataset, build_dataloader
78
+ from chemprop.featurizers import SimpleMoleculeMolGraphFeaturizer
79
+
80
+ # Load model
81
+ model_data = torch.load("best.pt", map_location="cpu", weights_only=False)
82
+ model = MPNN(
83
+ model_data["hyper_parameters"]["message_passing"],
84
+ model_data["hyper_parameters"]["agg"],
85
+ model_data["hyper_parameters"]["predictor"]
86
+ )
87
+ model.load_state_dict(model_data["state_dict"])
88
+ model.eval()
89
+ ```
90
+
91
+ ## Training Details
92
+
93
+ - **Dataset**: DB for chromophore_Sci_Data_rev03.csv (20,836 raw entries, 20,502 after cleaning)
94
+ - **Data cleaning**: Removed 314 duplicates, 17 entries with negative Stokes shift, 20 entries with invalid solvent
95
+ - **Missing values**: Handled via masked loss (Chemprop native support)
96
+ - **Split**: Random 80/10/10 (train: 16,401 / val: 2,050 / test: 2,051)
97
+ - **Optimizer**: Adam with warmup (5 epochs) + cosine decay
98
+ - **Hardware**: NVIDIA A100-SXM4-40GB, RAIDEN HPC Cluster (RIKEN)
99
+
100
+ ## Limitations
101
+
102
+ - Quantum yield predictions have moderate accuracy (MAE=0.12, R²=0.68) due to inherent measurement noise and limited structural information
103
+ - Lifetime predictions are unreliable (R²<0.1) - this property requires quantum mechanical calculations beyond SMILES
104
+ - Best performance on common solvents (DCM, acetonitrile, toluene); rare solvents may have higher error
105
+ - Training data is from literature compilations with varying experimental conditions
106
+
107
+ ## Citation
108
+
109
+ If you use this model, please cite:
110
+
111
+ ```bibtex
112
+ @article{joung2020experimental,
113
+ title={Experimental database of optical properties of organic compounds},
114
+ author={Joung, Joonyoung F and Han, Minhi and Jeong, Minseok and Park, Sungnam},
115
+ journal={Scientific Data},
116
+ volume={7},
117
+ pages={295},
118
+ year={2020}
119
+ }
120
+
121
+ @article{heid2024chemprop,
122
+ title={Chemprop: A Machine Learning Package for Chemical Property Prediction},
123
+ author={Heid, Esther and others},
124
+ journal={Journal of Chemical Information and Modeling},
125
+ volume={64},
126
+ number={1},
127
+ pages={9--17},
128
+ year={2024}
129
+ }
130
+ ```
best.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a36c1129b2e175507dc3b055e942b71a0d8610d1b35072850c838f19d0875e45
3
+ size 4369963
test_predictions.csv ADDED
The diff for this file is too large to render. See raw diff