Delcher commited on
Commit
fba3ad3
·
verified ·
1 Parent(s): 991d3aa

Upload folder using huggingface_hub

Browse files
.DS_Store ADDED
Binary file (6.15 kB). View file
 
.gitattributes CHANGED
@@ -57,3 +57,11 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
57
  # Video files - compressed
58
  *.mp4 filter=lfs diff=lfs merge=lfs -text
59
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
57
  # Video files - compressed
58
  *.mp4 filter=lfs diff=lfs merge=lfs -text
59
  *.webm filter=lfs diff=lfs merge=lfs -text
60
+ uspto50k/raw_train.csv filter=lfs diff=lfs merge=lfs -text
61
+ uspto50k/train.txt filter=lfs diff=lfs merge=lfs -text
62
+ usptomit/test.txt filter=lfs diff=lfs merge=lfs -text
63
+ usptomit/test_USPTO-MIT.csv filter=lfs diff=lfs merge=lfs -text
64
+ usptomit/train.txt filter=lfs diff=lfs merge=lfs -text
65
+ usptomit/train_USPTO-MIT.csv filter=lfs diff=lfs merge=lfs -text
66
+ usptomit/val.txt filter=lfs diff=lfs merge=lfs -text
67
+ usptomit/val_USPTO-MIT.csv filter=lfs diff=lfs merge=lfs -text
uspto50k/raw_test.csv ADDED
The diff for this file is too large to render. See raw diff
 
uspto50k/raw_train.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:69661b12baa44d5a0be6cfc7698af8b518341fcb4427780c60358e0d9dcd8e7f
3
+ size 15958271
uspto50k/raw_val.csv ADDED
The diff for this file is too large to render. See raw diff
 
uspto50k/test.txt ADDED
The diff for this file is too large to render. See raw diff
 
uspto50k/test_data.pickle ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:feaf069e8278710f6e77a1a9f804f5a58c9f262827405f18eedb99e3dc9a1659
3
+ size 15372002
uspto50k/train.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0edc69ade9fc8feaafec901d0a722d2101b3a059a5657ce162d1bc49e9d67bda
3
+ size 15186768
uspto50k/train_data.pickle ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6114ec9e8cf17268315fe5e0570e165979629ed585ea1bf308b891a7a766bc74
3
+ size 123157742
uspto50k/val.txt ADDED
The diff for this file is too large to render. See raw diff
 
uspto50k/val_data.pickle ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4968e14a6491a1d17e63f9de62edfb101723cc7d915106baaaeb6443bda4b8e2
3
+ size 15387169
uspto50k/write_to_txt.py ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from pandas import read_csv
2
+ def check_smiles(smiles):
3
+ mols = smiles.split('>')
4
+ smiles = '>>'.join([mols[0], mols[2]])
5
+ assert len(smiles.split('>>')) == 2
6
+ return smiles
7
+
8
+ splits = ['train', 'val', 'test']
9
+ for split in splits:
10
+ file_name = '/internfs/linhaitao/syn_baseline/data/uspto50k/raw_{}.csv'.format(split)
11
+ df = read_csv(file_name)
12
+ smiles = df['reactants>reagents>production'].tolist()
13
+ smiles = [check_smiles(smile) for smile in smiles]
14
+ with open('/internfs/linhaitao/syn_baseline/data/uspto50k/raw_{}.txt'.format(split), 'w') as f:
15
+ for smile in smiles:
16
+ f.write(smile + '\n')
usptomit/test.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a376e1a8ade15ac8596c5696eb049c904f4034d3e00f3bb2098b11d0b2afdc09
3
+ size 19504664
usptomit/test_USPTO-MIT.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2ab6f30d652cfd358bb4304eb61d2339fd0ed5775d24cf086300550152c087e2
3
+ size 15791145
usptomit/test_data.pickle ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:99041ad3dfe25c825c2fa661c928b0cb8d3082d6f5ccb037adb09974df9c514e
3
+ size 163429413
usptomit/train.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e4d3b10a86aff4e31613618462222a5de1a17239c97f28483ee85702cbb19eb3
3
+ size 199181542
usptomit/train_USPTO-MIT.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fcd9148eba9a8ed5952faf69ebcaa19fb96e5b47533517346c17db13b0750cd1
3
+ size 162086913
usptomit/train_data.pickle ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fb154774541434c50f0788387ec6907521745c98ba0309ee426c08c01f836d5d
3
+ size 1666691909
usptomit/val.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1a1b4fd51a2980aebcf89b79a4f300536176668264417653f5e3e493df05725c
3
+ size 14575964
usptomit/val_USPTO-MIT.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5493f7ac386b4edc3480e5f400a111306c8dc793fcef796e5c14f232ece76da3
3
+ size 11806196
usptomit/val_data.pickle ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9de674764bf254d21d0166aed006126aa46c2c8b791279284b1151da76341a95
3
+ size 122075143
usptomit/valid_data.pickle ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9de674764bf254d21d0166aed006126aa46c2c8b791279284b1151da76341a95
3
+ size 122075143