Hani Park commited on
Commit
50a14e5
·
1 Parent(s): 7e2c37f

Removed invalid SMILES and updated README.md

Browse files
Files changed (34) hide show
  1. .gitattributes +0 -58
  2. Molecule3D/Molecule3D_random_split/Molecule3D_random_test.parquet +0 -3
  3. Molecule3D/Molecule3D_random_split/Molecule3D_random_train.parquet +0 -3
  4. Molecule3D/Molecule3D_random_split/Molecule3D_random_valid.parquet +0 -3
  5. Molecule3D/Molecule3D_scaffold_split/Molecule3D_scaffold_test.parquet +0 -3
  6. Molecule3D/Molecule3D_scaffold_split/Molecule3D_scaffold_train.parquet +0 -3
  7. Molecule3D/Molecule3D_scaffold_split/Molecule3D_scaffold_valid.parquet +0 -3
  8. Molecule3D_random_split/test-00000-of-00003.parquet +0 -3
  9. Molecule3D_random_split/test-00001-of-00003.parquet +0 -3
  10. Molecule3D_random_split/test-00002-of-00003.parquet +0 -3
  11. Molecule3D_random_split/train-00000-of-00007.parquet +0 -3
  12. Molecule3D_random_split/train-00001-of-00007.parquet +0 -3
  13. Molecule3D_random_split/train-00002-of-00007.parquet +0 -3
  14. Molecule3D_random_split/train-00003-of-00007.parquet +0 -3
  15. Molecule3D_random_split/train-00004-of-00007.parquet +0 -3
  16. Molecule3D_random_split/train-00005-of-00007.parquet +0 -3
  17. Molecule3D_random_split/train-00006-of-00007.parquet +0 -3
  18. Molecule3D_random_split/validation-00000-of-00003.parquet +0 -3
  19. Molecule3D_random_split/validation-00001-of-00003.parquet +0 -3
  20. Molecule3D_random_split/validation-00002-of-00003.parquet +0 -3
  21. Molecule3D_scaffold_split/test-00000-of-00003.parquet +0 -3
  22. Molecule3D_scaffold_split/test-00001-of-00003.parquet +0 -3
  23. Molecule3D_scaffold_split/test-00002-of-00003.parquet +0 -3
  24. Molecule3D_scaffold_split/train-00000-of-00007.parquet +0 -3
  25. Molecule3D_scaffold_split/train-00001-of-00007.parquet +0 -3
  26. Molecule3D_scaffold_split/train-00002-of-00007.parquet +0 -3
  27. Molecule3D_scaffold_split/train-00003-of-00007.parquet +0 -3
  28. Molecule3D_scaffold_split/train-00004-of-00007.parquet +0 -3
  29. Molecule3D_scaffold_split/train-00005-of-00007.parquet +0 -3
  30. Molecule3D_scaffold_split/train-00006-of-00007.parquet +0 -3
  31. Molecule3D_scaffold_split/validation-00000-of-00003.parquet +0 -3
  32. Molecule3D_scaffold_split/validation-00001-of-00003.parquet +0 -3
  33. Molecule3D_scaffold_split/validation-00002-of-00003.parquet +0 -3
  34. README.md +0 -232
.gitattributes DELETED
@@ -1,58 +0,0 @@
1
- *.7z filter=lfs diff=lfs merge=lfs -text
2
- *.arrow filter=lfs diff=lfs merge=lfs -text
3
- *.bin filter=lfs diff=lfs merge=lfs -text
4
- *.bz2 filter=lfs diff=lfs merge=lfs -text
5
- *.ckpt filter=lfs diff=lfs merge=lfs -text
6
- *.ftz filter=lfs diff=lfs merge=lfs -text
7
- *.gz filter=lfs diff=lfs merge=lfs -text
8
- *.h5 filter=lfs diff=lfs merge=lfs -text
9
- *.joblib filter=lfs diff=lfs merge=lfs -text
10
- *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
- *.lz4 filter=lfs diff=lfs merge=lfs -text
12
- *.mlmodel filter=lfs diff=lfs merge=lfs -text
13
- *.model filter=lfs diff=lfs merge=lfs -text
14
- *.msgpack filter=lfs diff=lfs merge=lfs -text
15
- *.npy filter=lfs diff=lfs merge=lfs -text
16
- *.npz filter=lfs diff=lfs merge=lfs -text
17
- *.onnx filter=lfs diff=lfs merge=lfs -text
18
- *.ot filter=lfs diff=lfs merge=lfs -text
19
- *.parquet filter=lfs diff=lfs merge=lfs -text
20
- *.pb filter=lfs diff=lfs merge=lfs -text
21
- *.pickle filter=lfs diff=lfs merge=lfs -text
22
- *.pkl filter=lfs diff=lfs merge=lfs -text
23
- *.pt filter=lfs diff=lfs merge=lfs -text
24
- *.pth filter=lfs diff=lfs merge=lfs -text
25
- *.rar filter=lfs diff=lfs merge=lfs -text
26
- *.safetensors filter=lfs diff=lfs merge=lfs -text
27
- saved_model/**/* filter=lfs diff=lfs merge=lfs -text
28
- *.tar.* filter=lfs diff=lfs merge=lfs -text
29
- *.tar filter=lfs diff=lfs merge=lfs -text
30
- *.tflite filter=lfs diff=lfs merge=lfs -text
31
- *.tgz filter=lfs diff=lfs merge=lfs -text
32
- *.wasm filter=lfs diff=lfs merge=lfs -text
33
- *.xz filter=lfs diff=lfs merge=lfs -text
34
- *.zip filter=lfs diff=lfs merge=lfs -text
35
- *.zst filter=lfs diff=lfs merge=lfs -text
36
- *tfevents* filter=lfs diff=lfs merge=lfs -text
37
- # Audio files - uncompressed
38
- *.pcm filter=lfs diff=lfs merge=lfs -text
39
- *.sam filter=lfs diff=lfs merge=lfs -text
40
- *.raw filter=lfs diff=lfs merge=lfs -text
41
- # Audio files - compressed
42
- *.aac filter=lfs diff=lfs merge=lfs -text
43
- *.flac filter=lfs diff=lfs merge=lfs -text
44
- *.mp3 filter=lfs diff=lfs merge=lfs -text
45
- *.ogg filter=lfs diff=lfs merge=lfs -text
46
- *.wav filter=lfs diff=lfs merge=lfs -text
47
- # Image files - uncompressed
48
- *.bmp filter=lfs diff=lfs merge=lfs -text
49
- *.gif filter=lfs diff=lfs merge=lfs -text
50
- *.png filter=lfs diff=lfs merge=lfs -text
51
- *.tiff filter=lfs diff=lfs merge=lfs -text
52
- # Image files - compressed
53
- *.jpg filter=lfs diff=lfs merge=lfs -text
54
- *.jpeg filter=lfs diff=lfs merge=lfs -text
55
- *.webp filter=lfs diff=lfs merge=lfs -text
56
- # Video files - compressed
57
- *.mp4 filter=lfs diff=lfs merge=lfs -text
58
- *.webm filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Molecule3D/Molecule3D_random_split/Molecule3D_random_test.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:35401b100a4b98fa92eed913632228103c49e6e3e3d86762d6057a3cd2a33b86
3
- size 356532265
 
 
 
 
Molecule3D/Molecule3D_random_split/Molecule3D_random_train.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:10e7e1d2f49cbe22e44174ff87e603bcc0c9226a0ae18d8abe84c06d39f6f4ec
3
- size 1063871337
 
 
 
 
Molecule3D/Molecule3D_random_split/Molecule3D_random_valid.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:97bcc40e33ff685eac17baa1b812ea308c095be436fff0ec0354aab53a146446
3
- size 356475734
 
 
 
 
Molecule3D/Molecule3D_scaffold_split/Molecule3D_scaffold_test.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:efed16d795766a01ca8aa58a03dd3094d72188ea8aa8c41a5d30136d9f2f2a93
3
- size 378409387
 
 
 
 
Molecule3D/Molecule3D_scaffold_split/Molecule3D_scaffold_train.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:05cafaf5fd6ca3371c9f52c0a52a935259de7014ff424ed6a790d44a3fe860b1
3
- size 1021222490
 
 
 
 
Molecule3D/Molecule3D_scaffold_split/Molecule3D_scaffold_valid.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:042a6c54fd5a34cab516153a49ed8de1d77f7985351ecb5ecc42fce7d308d001
3
- size 364146071
 
 
 
 
Molecule3D_random_split/test-00000-of-00003.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:14f6c417d8adca69c3f120f74ed9824f054e9b450fdc5707d5ace7fb5c5febf6
3
- size 122609461
 
 
 
 
Molecule3D_random_split/test-00001-of-00003.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:1d9976a5b11f8888880b45300ca3dda6a7c852ff4235232211dc25811fe1ee4e
3
- size 125757440
 
 
 
 
Molecule3D_random_split/test-00002-of-00003.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:227516d54160da0e12d2aadbf220ea70943d7d5721450cc56b8a9f40e26ffad1
3
- size 129268359
 
 
 
 
Molecule3D_random_split/train-00000-of-00007.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:b126cbe2e5bfbd32b674a87e5e6ce7c0be3e026cd5ae4473eb4f08cb428620ff
3
- size 161725388
 
 
 
 
Molecule3D_random_split/train-00001-of-00007.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:e83e1784374d8fa804597fbde8784ac05972c267e6e6f88121380bce4f53c4da
3
- size 152880957
 
 
 
 
Molecule3D_random_split/train-00002-of-00007.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:0a8f820ae89c35989b6c2f742d37bd9c4c2209b7564375e6d077b600d348ce12
3
- size 160100209
 
 
 
 
Molecule3D_random_split/train-00003-of-00007.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:aa76a34aaf3a0ad154dd1985249d5b21118be216edb38090bc83c3c92e619085
3
- size 154246696
 
 
 
 
Molecule3D_random_split/train-00004-of-00007.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:20fe26d2fd4afc85e77e1f9e872b99c7e11250a8f352f7f83a6fc44b138dc5a4
3
- size 167920567
 
 
 
 
Molecule3D_random_split/train-00005-of-00007.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:cd339a269b5775c80af514adc37518b35c152270d6922af5b5250759f5a4ab42
3
- size 168353409
 
 
 
 
Molecule3D_random_split/train-00006-of-00007.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:ac204c6a3f960da11017b0cc0090a39bee3d2c387973d5d04a06f6f8816d3f27
3
- size 161425880
 
 
 
 
Molecule3D_random_split/validation-00000-of-00003.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:5ae365b82bc7041365280866dd854633764376a953e2baee7739f7afe5555147
3
- size 122540170
 
 
 
 
Molecule3D_random_split/validation-00001-of-00003.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:035c3a8a825ca89de7dbaeb0049869b30358c903836b653b5b4c3a8ea17963c3
3
- size 125724981
 
 
 
 
Molecule3D_random_split/validation-00002-of-00003.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:344fe1ea927faa1e4ff1ce34e29b62f3a60fb85d0da0b9ed1fed07d5f77fa416
3
- size 129275583
 
 
 
 
Molecule3D_scaffold_split/test-00000-of-00003.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:5fe874324318d448c3a200ddb3cf289794a8e1bdd97508aaa0f8d31444f0dcf1
3
- size 134408439
 
 
 
 
Molecule3D_scaffold_split/test-00001-of-00003.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:7a89aab6e666262738f705ffca747f5a700381ad5b7dd9b66a2e4b92ac16d046
3
- size 131938142
 
 
 
 
Molecule3D_scaffold_split/test-00002-of-00003.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:83e298f561d0003648132a6f902a04b717c10822cbe6357551a1f7a7b9011e47
3
- size 133241270
 
 
 
 
Molecule3D_scaffold_split/train-00000-of-00007.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:8aebe4fc8cc3126892eba10c776d7223c459df7f703b993c241c6bbac0288142
3
- size 151193815
 
 
 
 
Molecule3D_scaffold_split/train-00001-of-00007.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:3beffc88856debe6bcf79fc729fa1770c2f68dc01455843f76f98f83e344d2af
3
- size 146534176
 
 
 
 
Molecule3D_scaffold_split/train-00002-of-00007.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:00b28ffb23a1935a184cfdb00dccf8a57eae92b851339bb693d166bbdd3f9c49
3
- size 154828357
 
 
 
 
Molecule3D_scaffold_split/train-00003-of-00007.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:b08111c7c1da321c6f6ea17af88f417a8ff2978abcc9acfd7ceae2b691ec11c9
3
- size 149627653
 
 
 
 
Molecule3D_scaffold_split/train-00004-of-00007.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:033872e0673118184dd2c132321e7e384d83ecd8e4f876e443ee70f1aa120091
3
- size 161354908
 
 
 
 
Molecule3D_scaffold_split/train-00005-of-00007.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:d85b0332a29254ade6ad47990b312ed66920362c81db9528b14360e43520d7af
3
- size 163083125
 
 
 
 
Molecule3D_scaffold_split/train-00006-of-00007.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:0b72c1a38df168c9c60d044245875291a3b2f0de4cf6afe74a39f0a5b99be996
3
- size 156616885
 
 
 
 
Molecule3D_scaffold_split/validation-00000-of-00003.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:2375e5a7cf3eefdcdde0c693d0f0edacb3f83d4c3c6f08fd11d799258612d928
3
- size 125520837
 
 
 
 
Molecule3D_scaffold_split/validation-00001-of-00003.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:9d5c02ca769a48b7ac9cc002533f58a320666e9f11f3cb6a5763727aa4b89f59
3
- size 129215628
 
 
 
 
Molecule3D_scaffold_split/validation-00002-of-00003.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:7876953c9eeab2d842bb9274b41c203893fa26c152f4606b8faeb333d9308901
3
- size 130113710
 
 
 
 
README.md DELETED
@@ -1,232 +0,0 @@
1
- ---
2
- version: 1.1.0
3
- language: en
4
- license: gpl-3.0
5
- size_categories:
6
- - 1M<n<10M
7
- task_categories:
8
- - tabular-regression
9
- pretty_name: Molecule3D
10
- tags:
11
- - molecular geometry
12
- - molecular graph
13
- dataset_summary: Curated dataset of ground-state geometries of 4 million molecules
14
- dervied from density functional theory, consisting of SMILES, sdf, and 3D properties
15
- of molecules. Random split and scaffold split datasets are uploaded to our repository.
16
- citation: '@misc{https://doi.org/10.48550/arxiv.2110.01717, doi = {10.48550/ARXIV.2110.01717},
17
- url = {https://arxiv.org/abs/2110.01717}, author = {Xu, Zhao and Luo, Youzhi and
18
- Zhang, Xuan and Xu, Xinyi and Xie, Yaochen and Liu, Meng and Dickerson, Kaleb
19
- and Deng, Cheng and Nakata, Maho and Ji, Shuiwang}, keywords = {Machine Learning
20
- (cs.LG), Artificial Intelligence (cs.AI), FOS: Computer and information sciences, FOS:
21
- Computer and information sciences}, title = {Molecule3D: A Benchmark for Predicting
22
- 3D Geometries from Molecular Graphs}, publisher = {arXiv}, year = {2021}, copyright
23
- = {arXiv.org perpetual, non-exclusive license} }'
24
- configs:
25
- - config_name: Molecule3D_random_split
26
- data_files:
27
- - split: train
28
- path: Molecule3D_random_split/train-*
29
- - split: test
30
- path: Molecule3D_random_split/test-*
31
- - split: validation
32
- path: Molecule3D_random_split/validation-*
33
- - config_name: Molecule3D_scaffold_split
34
- data_files:
35
- - split: train
36
- path: Molecule3D_scaffold_split/train-*
37
- - split: validation
38
- path: Molecule3D_scaffold_split/validation-*
39
- - split: test
40
- path: Molecule3D_scaffold_split/test-*
41
- dataset_info:
42
- - config_name: Molecule3D_random_split
43
- features:
44
- - name: index
45
- dtype: int64
46
- - name: SMILES
47
- dtype: string
48
- - name: sdf
49
- dtype: string
50
- - name: cid
51
- dtype: int64
52
- - name: dipole x
53
- dtype: float64
54
- - name: dipole y
55
- dtype: float64
56
- - name: dipole z
57
- dtype: float64
58
- - name: homo
59
- dtype: float64
60
- - name: lumo
61
- dtype: float64
62
- - name: Y
63
- dtype: float64
64
- - name: scf energy
65
- dtype: float64
66
- splits:
67
- - name: train
68
- num_bytes: 3175756092
69
- num_examples: 2339728
70
- - name: test
71
- num_bytes: 1058783091
72
- num_examples: 779895
73
- - name: validation
74
- num_bytes: 1058496510
75
- num_examples: 779903
76
- download_size: 1881829100
77
- dataset_size: 5293035693
78
- - config_name: Molecule3D_scaffold_split
79
- features:
80
- - name: index
81
- dtype: int64
82
- - name: SMILES
83
- dtype: string
84
- - name: sdf
85
- dtype: string
86
- - name: cid
87
- dtype: int64
88
- - name: dipole x
89
- dtype: float64
90
- - name: dipole y
91
- dtype: float64
92
- - name: dipole z
93
- dtype: float64
94
- - name: homo
95
- dtype: float64
96
- - name: lumo
97
- dtype: float64
98
- - name: Y
99
- dtype: float64
100
- - name: scf energy
101
- dtype: float64
102
- splits:
103
- - name: train
104
- num_bytes: 3066815311
105
- num_examples: 2339742
106
- - name: validation
107
- num_bytes: 1095660967
108
- num_examples: 779925
109
- - name: test
110
- num_bytes: 1130559415
111
- num_examples: 779859
112
- download_size: 1867676945
113
- dataset_size: 5293035693
114
- ---
115
-
116
- # Molecule3D
117
- [Molecule3D](https://arxiv.org/abs/2110.01717) is a comprehensive dataset containing ground-state geometries derived from Density Functional Theory (DFT) calculations for approximately 4 million molecules.
118
- This is a mirror of the [Official Github repo](https://github.com/divelab/MoleculeX/tree/molx/Molecule3D) where the dataset was uploaded in 2021.
119
-
120
-
121
- ## Preprocseeing
122
- [Update on 2025.08.06 - version 1.1.0]
123
- We removed invalid SMILES strings which could not be parsed by RDKit.
124
- - Random split
125
- 1. train : removed 60 smiles strings from 2339788 strings
126
- 2. test : removed 35 smiles strings from 779930 strings
127
- 3. validation : removed 26 smiles strings from 779929 strings
128
- - Scaffold split
129
- 1. train : removed 46 smiles strings from 2339788 strings
130
- 2. test : removed 71 smiles strings from 779930 strings
131
- 3. validation : removed 4 smiles strings from 779929 strings
132
-
133
-
134
- We utilized the raw data uploaded on [Github](https://github.com/divelab/MoleculeX/tree/molx/Molecule3D/data/raw) and performed several preprocessing:
135
- 1. Sanitize the molecules using RDKit and MolVS (standardize SMILES format)
136
- 2. Combine the SMILES strings, SDF data, and 3D molecular properties for each molecule.
137
- 3. Split the dataset using random split and scaffold split (train, test, validation)
138
-
139
- If you would like to try these processes with the original dataset,
140
- please follow the instructions in the [Preprocessing Script](https://huggingface.co/datasets/maomlab/Molecule3D/blob/main/Molecule3D_preprocessing.py) file located in our Molecule3D repository.
141
-
142
-
143
-
144
- ## Quickstart Usage
145
-
146
- ### Load a dataset in python
147
- Each subset can be loaded into python using the Huggingface [datasets](https://huggingface.co/docs/datasets/index) library.
148
- First, from the command line install the `datasets` library
149
-
150
- $ pip install datasets
151
-
152
- then, from within python load the datasets library
153
-
154
- >>> import datasets
155
-
156
- and load one of the `Molecule3D` datasets, e.g.,
157
-
158
- >>> Molecule3D = datasets.load_dataset('maomlab/Molecule3D', name = 'Molecule3D_random_split') # can put 'Molecule3D_scaffold_split' for the name as well
159
- README.md: 100% 4.95k/4.95k [00:00<00:00, 559kB/s]
160
- Generating train split: 100% 2339788/2339788 [00:34<00:00, 85817.85 examples/s]
161
- Generating test split: 100% 779930/779930 [00:15<00:00, 96660.33 examples/s]
162
- Generating validation split:  100% 779929/779929 [00:09<00:00, 79064.99 examples/s]
163
-
164
- and inspecting the dataset
165
-
166
- >>> Molecule3D
167
- DatasetDict({
168
- train: Dataset({
169
- features: ['index', 'SMILES', 'sdf', 'cid', 'dipole x', 'dipole y', 'dipole z', 'homo', 'lumo', 'Y', 'scf energy'],
170
- num_rows: 2339788
171
- })
172
- test: Dataset({
173
- features: ['index', 'SMILES', 'sdf', 'cid', 'dipole x', 'dipole y', 'dipole z', 'homo', 'lumo', 'Y', 'scf energy'],
174
- num_rows: 779930
175
- })
176
- validation: Dataset({
177
- features: ['index', 'SMILES', 'sdf', 'cid', 'dipole x', 'dipole y', 'dipole z', 'homo', 'lumo', 'Y', 'scf energy'],
178
- num_rows: 779929
179
- })
180
- })
181
-
182
-
183
- ### Use a dataset to train a model
184
- One way to use the dataset is through the [MolFlux](https://exscientia.github.io/molflux/) package developed by Exscientia.
185
- First, from the command line, install `MolFlux` library with `catboost` and `rdkit` support
186
-
187
- pip install 'molflux[catboost,rdkit]'
188
-
189
- then load, featurize, split, fit, and evaluate the catboost model
190
-
191
- import json
192
- from datasets import load_dataset
193
- from molflux.datasets import featurise_dataset
194
- from molflux.features import load_from_dicts as load_representations_from_dicts
195
- from molflux.splits import load_from_dict as load_split_from_dict
196
- from molflux.modelzoo import load_from_dict as load_model_from_dict
197
- from molflux.metrics import load_suite
198
-
199
- split_dataset = load_dataset('maomlab/Molecule3D', name = 'Molecule3D_random_split') # can put 'Molecule3D_scaffold_split' for the name as well
200
-
201
- split_featurised_dataset = featurise_dataset(
202
- split_dataset,
203
- column = "SMILES",
204
- representations = load_representations_from_dicts([{"name": "morgan"}, {"name": "maccs_rdkit"}]))
205
-
206
- model = load_model_from_dict({
207
- "name": "cat_boost_regressor",
208
- "config": {
209
- "x_features": ['SMILES::morgan', 'SMILES::maccs_rdkit'],
210
- "y_features": ['Y']}})
211
-
212
- model.train(split_featurised_dataset["train"])
213
- preds = model.predict(split_featurised_dataset["test"])
214
-
215
- regression_suite = load_suite("regression")
216
-
217
- scores = regression_suite.compute(
218
- references=split_featurised_dataset["test"]['Y'],
219
- predictions=preds["cat_boost_regressor::Y"])
220
-
221
-
222
- ## Citation
223
- @misc{https://doi.org/10.48550/arxiv.2110.01717,
224
- doi = {10.48550/ARXIV.2110.01717},
225
- url = {https://arxiv.org/abs/2110.01717},
226
- author = {Xu, Zhao and Luo, Youzhi and Zhang, Xuan and Xu, Xinyi and Xie, Yaochen and Liu, Meng and Dickerson, Kaleb and Deng, Cheng and Nakata, Maho and Ji, Shuiwang},
227
- keywords = {Machine Learning (cs.LG), Artificial Intelligence (cs.AI), FOS: Computer and information sciences, FOS: Computer and information sciences},
228
- title = {Molecule3D: A Benchmark for Predicting 3D Geometries from Molecular Graphs},
229
- publisher = {arXiv},
230
- year = {2021},
231
- copyright = {arXiv.org perpetual, non-exclusive license}
232
- }