Matthew Ford commited on
Commit
e52f355
·
unverified ·
1 Parent(s): e12dde8

feat: fetch GoodScents substantivity data and calibrate thresholds

Browse files

- Download GoodScents data from Pyrfume (1,208 CAS with substantivity hours)
- Grid-search optimal substantivity thresholds against true Poucher ground truth
- Achieve kappa=0.330 on 83-CAS overlap (top<15h, mid 15-241h, base>=241h)
- Substantivity is a better proxy than OAV/VP but still imperfect

data/goodscents_substantivity.json ADDED
@@ -0,0 +1,1213 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cas_to_substantivity_hours": {
3
+ "100-06-1": 251.0,
4
+ "100-51-6": 35.0,
5
+ "100-52-7": 4.0,
6
+ "100-66-3": 4.0,
7
+ "100-86-7": 6.0,
8
+ "1001252-30-7": 400.0,
9
+ "10022-28-3": 1.0,
10
+ "10024-64-3": 72.0,
11
+ "10031-71-7": 94.0,
12
+ "10031-90-0": 68.0,
13
+ "10032-02-7": 17.0,
14
+ "10032-05-0": 8.0,
15
+ "10032-13-0": 3.0,
16
+ "10032-15-2": 12.0,
17
+ "10058-43-2": 72.0,
18
+ "1006-27-5": 48.0,
19
+ "10094-34-5": 100.0,
20
+ "10094-41-4": 4.0,
21
+ "101-39-3": 240.0,
22
+ "101-41-7": 56.0,
23
+ "101-48-4": 100.0,
24
+ "101-49-5": 72.0,
25
+ "101-81-5": 24.0,
26
+ "101-84-8": 156.0,
27
+ "101-86-0": 400.0,
28
+ "101-94-0": 400.0,
29
+ "101-97-3": 312.0,
30
+ "102-13-6": 96.0,
31
+ "102-16-9": 400.0,
32
+ "102-17-0": 48.0,
33
+ "102-19-2": 172.0,
34
+ "102-20-5": 400.0,
35
+ "102-76-1": 204.0,
36
+ "10236-16-5": 79.0,
37
+ "103-05-9": 244.0,
38
+ "103-07-1": 28.0,
39
+ "103-26-4": 164.0,
40
+ "103-28-6": 12.0,
41
+ "103-36-6": 400.0,
42
+ "103-37-7": 64.0,
43
+ "103-38-8": 148.0,
44
+ "103-41-3 (Z)": 243.0,
45
+ "103-45-7": 16.0,
46
+ "103-48-0": 164.0,
47
+ "103-50-4": 400.0,
48
+ "103-53-7": 400.0,
49
+ "103-54-8": 124.0,
50
+ "103-56-0": 184.0,
51
+ "103-58-2": 189.0,
52
+ "103-60-6": 184.0,
53
+ "103-61-7": 400.0,
54
+ "103-64-0": 32.0,
55
+ "103-82-2": 400.0,
56
+ "103-95-7": 72.0,
57
+ "10339-55-6": 12.0,
58
+ "103694-68-4": 400.0,
59
+ "104-09-6": 352.0,
60
+ "104-20-1": 324.0,
61
+ "104-21-2": 100.0,
62
+ "104-45-0": 4.0,
63
+ "104-50-7": 144.0,
64
+ "104-53-0": 244.0,
65
+ "104-54-1": 371.0,
66
+ "104-55-2": 212.0,
67
+ "104-57-4": 8.0,
68
+ "104-61-0": 309.0,
69
+ "104-62-1": 68.0,
70
+ "104-65-4": 244.0,
71
+ "104-67-6": 338.0,
72
+ "104-76-7": 16.0,
73
+ "104-87-0": 120.0,
74
+ "104-93-8": 8.0,
75
+ "10402-33-2": 348.0,
76
+ "10402-48-9": 48.0,
77
+ "10403-00-6": 336.0,
78
+ "10411-92-4": 24.0,
79
+ "10415-87-9": 304.0,
80
+ "104468-21-5": 3.0,
81
+ "10461-98-0": 400.0,
82
+ "10486-19-8": 400.0,
83
+ "104864-90-6": 336.0,
84
+ "104986-28-9": 24.0,
85
+ "105-13-5": 82.0,
86
+ "105-21-5": 400.0,
87
+ "105-37-3": 4.0,
88
+ "105-45-3": 4.0,
89
+ "105-53-3": 4.0,
90
+ "105-54-4": 4.0,
91
+ "105-68-0": 4.0,
92
+ "105-79-3": 6.0,
93
+ "105-82-8": 5.0,
94
+ "105-85-1": 40.0,
95
+ "105-86-2": 24.0,
96
+ "105-87-3": 24.0,
97
+ "105-90-8": 76.0,
98
+ "105-91-9": 10.0,
99
+ "105-95-3": 208.0,
100
+ "10519-11-6": 140.0,
101
+ "10519-12-7": 68.0,
102
+ "105463-44-3": 64.0,
103
+ "10599-70-9": 356.0,
104
+ "106-02-5": 400.0,
105
+ "106-21-8": 24.0,
106
+ "106-23-0": 16.0,
107
+ "106-24-1": 60.0,
108
+ "106-25-2": 44.0,
109
+ "106-29-6": 88.0,
110
+ "106-30-9": 56.0,
111
+ "106-32-1": 4.0,
112
+ "106-33-2": 216.0,
113
+ "106-44-5": 400.0,
114
+ "106-65-0": 11.0,
115
+ "106-72-9": 144.0,
116
+ "107-03-9": 8.0,
117
+ "107-74-4": 248.0,
118
+ "107-75-5": 218.0,
119
+ "107-92-6": 24.0,
120
+ "107715-18-4": 88.0,
121
+ "107898-54-4": 336.0,
122
+ "108-29-2": 2.0,
123
+ "108-39-4": 43.0,
124
+ "108-50-9": 37.0,
125
+ "108-64-5": 4.0,
126
+ "108910-53-8": 24.0,
127
+ "109-05-7": 2.0,
128
+ "109-15-9": 43.0,
129
+ "109-19-3": 28.0,
130
+ "109-21-7": 8.0,
131
+ "109-25-1": 16.0,
132
+ "109-29-5": 400.0,
133
+ "109-42-2": 344.0,
134
+ "109-43-3": 400.0,
135
+ "109-94-4": 4.0,
136
+ "110-38-3": 44.0,
137
+ "110-39-4": 24.0,
138
+ "110-40-7": 164.0,
139
+ "110-41-8": 388.0,
140
+ "110-45-2": 4.0,
141
+ "110-93-0": 4.0,
142
+ "110458-85-0": 156.0,
143
+ "110682-09-2": 188.0,
144
+ "111-12-6": 240.0,
145
+ "111-70-6": 12.0,
146
+ "111-71-7": 12.0,
147
+ "111-79-5": 16.0,
148
+ "111-80-8": 112.0,
149
+ "111-82-0": 400.0,
150
+ "111-87-5": 92.0,
151
+ "1115-11-3": 16.0,
152
+ "111753-60-7": 400.0,
153
+ "111753-62-9": 400.0,
154
+ "1118-39-4": 6.0,
155
+ "111879-80-2": 336.0,
156
+ "112-06-1": 6.0,
157
+ "112-12-9": 128.0,
158
+ "112-14-1": 16.0,
159
+ "112-17-4": 39.0,
160
+ "112-19-6": 257.0,
161
+ "112-23-2": 4.0,
162
+ "112-30-1": 104.0,
163
+ "112-31-2": 224.0,
164
+ "112-32-3": 4.0,
165
+ "112-43-6": 152.0,
166
+ "112-44-7": 72.0,
167
+ "112-45-8": 380.0,
168
+ "112-53-8": 400.0,
169
+ "112-54-9": 368.0,
170
+ "112-66-3": 238.0,
171
+ "1122-62-9": 9.0,
172
+ "1128-08-1": 340.0,
173
+ "113889-23-9": 149.0,
174
+ "1139-30-6": 116.0,
175
+ "115-95-7": 20.0,
176
+ "116-02-9": 20.0,
177
+ "116-26-7": 64.0,
178
+ "116-53-0": 244.0,
179
+ "116-66-5": 400.0,
180
+ "117933-89-8": 400.0,
181
+ "118-58-1": 384.0,
182
+ "118-60-5 (S)": 48.0,
183
+ "118-61-6": 4.0,
184
+ "118-71-8": 372.0,
185
+ "118-93-4": 360.0,
186
+ "1189-09-9": 6.0,
187
+ "119-36-8": 8.0,
188
+ "119-61-9": 394.0,
189
+ "119-84-6": 228.0,
190
+ "1193-79-9": 12.0,
191
+ "120-11-6": 232.0,
192
+ "120-14-9": 400.0,
193
+ "120-24-1 (Z)": 400.0,
194
+ "120-45-6 (S)": 6.0,
195
+ "120-50-3": 16.0,
196
+ "120-51-4": 322.0,
197
+ "120-57-0": 212.0,
198
+ "120-72-9": 400.0,
199
+ "1200-67-5": 12.0,
200
+ "1205-17-0": 64.0,
201
+ "120811-92-9": 3.0,
202
+ "121-32-4": 400.0,
203
+ "121-33-5": 400.0,
204
+ "121251-68-1": 96.0,
205
+ "122-00-9": 20.0,
206
+ "122-03-2": 32.0,
207
+ "122-40-7": 256.0,
208
+ "122-43-0": 348.0,
209
+ "122-48-5": 337.0,
210
+ "122-57-6": 400.0,
211
+ "122-63-4": 8.0,
212
+ "122-67-8 (E)": 168.0,
213
+ "122-70-3": 96.0,
214
+ "122-72-5": 268.0,
215
+ "122-73-6": 12.0,
216
+ "122-78-1": 400.0,
217
+ "122-79-2": 6.0,
218
+ "122-91-8": 104.0,
219
+ "122-97-4": 152.0,
220
+ "122-99-6": 84.0,
221
+ "1222-05-5": 400.0,
222
+ "122795-41-9": 2.0,
223
+ "123-07-9": 109.0,
224
+ "123-11-5": 44.0,
225
+ "123-25-1": 20.0,
226
+ "123-29-5": 12.0,
227
+ "123-38-6": 4.0,
228
+ "123-51-3": 8.0,
229
+ "123-66-0": 4.0,
230
+ "123-76-2": 400.0,
231
+ "123-96-6": 12.0,
232
+ "124-06-1": 4.0,
233
+ "124-13-0": 7.0,
234
+ "124-19-6": 276.0,
235
+ "124-25-4": 400.0,
236
+ "124-76-5": 297.0,
237
+ "125-12-2": 8.0,
238
+ "125109-85-5": 144.0,
239
+ "125352-06-9": 48.0,
240
+ "126-64-7": 5.0,
241
+ "126-91-0": 16.0,
242
+ "127-41-3": 112.0,
243
+ "127-42-4": 124.0,
244
+ "127-43-5": 328.0,
245
+ "127-51-5": 124.0,
246
+ "127-91-3": 4.0,
247
+ "128-37-0": 400.0,
248
+ "128-50-7": 32.0,
249
+ "128119-70-0": 312.0,
250
+ "13019-16-4": 79.0,
251
+ "13019-22-2": 340.0,
252
+ "130786-09-3": 193.0,
253
+ "131-11-3": 400.0,
254
+ "13171-00-1": 400.0,
255
+ "131766-73-9": 25.0,
256
+ "1319-88-6": 8.0,
257
+ "1321-89-7": 340.0,
258
+ "1322-17-4": 168.0,
259
+ "1322-58-3": 24.0,
260
+ "1323-00-8": 400.0,
261
+ "13254-34-7": 12.0,
262
+ "13257-44-8": 48.0,
263
+ "1333-58-0": 168.0,
264
+ "1335-46-2": 184.0,
265
+ "1335-66-6": 16.0,
266
+ "13351-61-6": 160.0,
267
+ "1337-83-3": 400.0,
268
+ "134-20-3": 88.0,
269
+ "134-28-1": 332.0,
270
+ "134-96-3": 400.0,
271
+ "134123-93-6": 304.0,
272
+ "134769-33-8": 204.0,
273
+ "13477-62-8": 4.0,
274
+ "13491-79-7": 16.0,
275
+ "13494-06-9 (SS)": 236.0,
276
+ "13494-07-0": 83.0,
277
+ "135-02-4": 24.0,
278
+ "135-79-5": 320.0,
279
+ "13567-39-0": 96.0,
280
+ "13623-11-5": 16.0,
281
+ "1365-19-1": 12.0,
282
+ "13679-74-8": 11.0,
283
+ "136954-20-6": 181.0,
284
+ "137-03-1": 80.0,
285
+ "138-22-7": 126.0,
286
+ "138-23-8": 348.0,
287
+ "138-86-3": 3.0,
288
+ "13828-37-0": 72.0,
289
+ "13851-11-1": 8.0,
290
+ "13877-91-3": 4.0,
291
+ "13877-93-5": 44.0,
292
+ "13894-63-8": 4.0,
293
+ "138964-30-4": 63.0,
294
+ "139-70-8": 192.0,
295
+ "13991-37-2": 6.0,
296
+ "140-10-3": 340.0,
297
+ "140-11-4": 4.0,
298
+ "140-25-0": 96.0,
299
+ "140-26-1": 68.0,
300
+ "140-27-2": 100.0,
301
+ "140-39-6": 36.0,
302
+ "140-67-0": 8.0,
303
+ "140-88-5": 4.0,
304
+ "1405-92-1": 400.0,
305
+ "14073-97-3": 4.0,
306
+ "141-10-6": 29.0,
307
+ "141-11-7": 208.0,
308
+ "141-12-8": 52.0,
309
+ "141-13-9": 168.0,
310
+ "141-14-0": 20.0,
311
+ "141-16-2": 20.0,
312
+ "141-25-3": 236.0,
313
+ "141-78-6": 4.0,
314
+ "141-92-4": 400.0,
315
+ "141-97-9": 4.0,
316
+ "142-19-8": 4.0,
317
+ "142-92-7": 5.0,
318
+ "143-08-8": 44.0,
319
+ "143-13-5": 12.0,
320
+ "143-14-6": 746.0,
321
+ "14374-92-6": 24.0,
322
+ "1438-94-4": 24.0,
323
+ "144-39-8": 12.0,
324
+ "144020-22-4": 284.0,
325
+ "14436-32-9": 336.0,
326
+ "145-39-1": 348.0,
327
+ "1450625-49-6": 168.0,
328
+ "14595-54-1": 376.0,
329
+ "14620-52-1": 12.0,
330
+ "14667-55-1": 21.0,
331
+ "14735-72-9": 204.0,
332
+ "14765-30-1": 4.0,
333
+ "14901-07-6": 112.0,
334
+ "150-78-7": 76.0,
335
+ "150-84-5": 8.0,
336
+ "1504-55-8": 48.0,
337
+ "1504-74-1": 48.0,
338
+ "151-05-3": 44.0,
339
+ "151-10-0": 64.0,
340
+ "151-19-9": 12.0,
341
+ "15111-96-3": 143.0,
342
+ "1516-17-2": 2.0,
343
+ "15323-35-0": 384.0,
344
+ "15356-74-8": 298.0,
345
+ "15373-31-6": 44.0,
346
+ "156-06-9": 146.0,
347
+ "1576-78-9": 2.0,
348
+ "15760-18-6": 198.0,
349
+ "1577-18-0": 228.0,
350
+ "1599-47-9": 8.0,
351
+ "1599-49-1": 1.0,
352
+ "1604-28-0": 48.0,
353
+ "1608-72-6": 5.0,
354
+ "16251-77-7": 400.0,
355
+ "1632-73-1": 12.0,
356
+ "16356-11-9": 104.0,
357
+ "16409-45-3": 12.0,
358
+ "16409-46-4": 96.0,
359
+ "16491-36-4": 216.0,
360
+ "16491-54-6": 5.0,
361
+ "16510-27-3": 36.0,
362
+ "1653-30-1": 82.0,
363
+ "16587-71-6": 328.0,
364
+ "166432-52-6 (Z)": 24.0,
365
+ "16957-70-3": 380.0,
366
+ "1708-34-5": 7.0,
367
+ "1708-81-2": 2.0,
368
+ "1725-01-5": 316.0,
369
+ "17283-81-7": 9.0,
370
+ "17511-60-3": 144.0,
371
+ "1754-62-7": 164.0,
372
+ "17597-95-4": 8.0,
373
+ "1786-08-9": 4.0,
374
+ "18031-40-8": 8.0,
375
+ "18096-62-3": 400.0,
376
+ "181258-87-7": 8.0,
377
+ "18127-01-0": 104.0,
378
+ "18138-04-0": 4.0,
379
+ "18172-67-3": 4.0,
380
+ "18368-91-7": 68.0,
381
+ "18383-49-8": 20.0,
382
+ "18433-93-7": 3.0,
383
+ "18436-37-8": 168.0,
384
+ "18445-88-0": 364.0,
385
+ "18479-51-1": 12.0,
386
+ "18479-54-4": 120.0,
387
+ "18479-57-7": 6.0,
388
+ "18479-58-8": 16.0,
389
+ "184900-07-0": 320.0,
390
+ "18492-65-4": 6.0,
391
+ "1871-67-6": 18.0,
392
+ "18824-63-0": 8.0,
393
+ "1885-38-7": 84.0,
394
+ "18871-14-2": 356.0,
395
+ "188829-73-4": 118.0,
396
+ "19009-56-4": 172.0,
397
+ "19089-92-0": 11.0,
398
+ "19139-31-2": 128.0,
399
+ "19141-40-3": 14.0,
400
+ "19224-26-1": 7.0,
401
+ "19322-27-1": 83.0,
402
+ "196109-18-9 (E)": 6.0,
403
+ "19819-98-8": 400.0,
404
+ "198404-98-7": 400.0,
405
+ "19870-74-7": 124.0,
406
+ "20053-88-7": 5.0,
407
+ "20125-84-2": 15.0,
408
+ "2035-99-6": 64.0,
409
+ "2040-10-0": 504.0,
410
+ "20407-84-5": 72.0,
411
+ "2049-96-9": 96.0,
412
+ "2050-08-0": 124.0,
413
+ "20777-49-5": 32.0,
414
+ "20780-48-7": 12.0,
415
+ "20780-49-8": 12.0,
416
+ "21040-45-9": 124.0,
417
+ "2110-18-1": 400.0,
418
+ "2111-75-3": 8.0,
419
+ "21112-37-8": 280.0,
420
+ "21129-27-1": 8.0,
421
+ "2120-70-9": 188.0,
422
+ "21280-29-5": 52.0,
423
+ "21662-09-9": 48.0,
424
+ "21722-83-8": 32.0,
425
+ "2173-56-0": 4.0,
426
+ "2173-57-1": 116.0,
427
+ "21835-01-8": 92.0,
428
+ "2186-92-7": 112.0,
429
+ "2198-61-0": 64.0,
430
+ "22029-76-1": 168.0,
431
+ "22030-19-9": 24.0,
432
+ "22047-25-2": 400.0,
433
+ "2206-94-2": 168.0,
434
+ "22104-80-9": 264.0,
435
+ "2216-51-5": 32.0,
436
+ "2219-82-1": 92.0,
437
+ "2226-05-3": 156.0,
438
+ "22418-66-2": 6.0,
439
+ "2244-16-8": 8.0,
440
+ "22457-23-4": 16.0,
441
+ "22629-49-8": 400.0,
442
+ "2272-55-1": 312.0,
443
+ "22810-10-2": 64.0,
444
+ "2305-05-7": 400.0,
445
+ "2306-78-7": 272.0,
446
+ "2306-91-4": 172.0,
447
+ "23267-57-4": 48.0,
448
+ "23333-91-7": 68.0,
449
+ "2344-70-9": 44.0,
450
+ "2345-24-6": 96.0,
451
+ "2345-26-8": 9.0,
452
+ "23495-12-7": 120.0,
453
+ "2351-90-8": 7.0,
454
+ "236391-76-7": 400.0,
455
+ "23696-85-7": 216.0,
456
+ "23726-91-2": 264.0,
457
+ "23787-80-6": 25.0,
458
+ "23787-90-8": 240.0,
459
+ "2396-83-0": 1.0,
460
+ "2396-85-2": 8.0,
461
+ "24048-14-4": 204.0,
462
+ "2409-55-4": 400.0,
463
+ "24295-03-2": 16.0,
464
+ "2435-16-7": 4.0,
465
+ "2436-90-0": 4.0,
466
+ "2437-25-4": 240.0,
467
+ "2442-10-6": 8.0,
468
+ "2445-83-2": 400.0,
469
+ "24691-15-4": 2.0,
470
+ "24717-85-9": 24.0,
471
+ "24720-09-0": 64.0,
472
+ "24817-51-4": 48.0,
473
+ "24851-98-7": 72.0,
474
+ "2497-18-9": 1.0,
475
+ "25152-84-5": 94.0,
476
+ "25225-08-5": 12.0,
477
+ "25225-10-9": 3.0,
478
+ "25304-14-7": 12.0,
479
+ "25312-34-9": 88.0,
480
+ "25415-62-7": 4.0,
481
+ "2548-87-0": 68.0,
482
+ "25485-88-5": 400.0,
483
+ "2550-11-0": 4.0,
484
+ "2550-26-7": 172.0,
485
+ "2550-52-9": 400.0,
486
+ "25524-95-2": 36.0,
487
+ "2556-10-7": 12.0,
488
+ "25564-22-1": 312.0,
489
+ "2563-07-7": 400.0,
490
+ "25634-93-9": 20.0,
491
+ "2568-25-4": 48.0,
492
+ "2623-23-6": 10.0,
493
+ "2639-63-6": 4.0,
494
+ "26446-31-1": 400.0,
495
+ "26446-32-2": 400.0,
496
+ "26489-01-0": 56.0,
497
+ "26896-48-0": 400.0,
498
+ "2705-87-5": 251.0,
499
+ "2719-08-6": 384.0,
500
+ "27538-09-6": 168.0,
501
+ "2756-56-1": 20.0,
502
+ "27606-09-3": 308.0,
503
+ "2785-87-7": 72.0,
504
+ "2785-89-9": 304.0,
505
+ "28043-10-9": 1.0,
506
+ "28069-72-9": 240.0,
507
+ "28219-60-5": 400.0,
508
+ "28219-61-6 (Z)": 400.0,
509
+ "28231-03-0": 400.0,
510
+ "28371-99-5": 96.0,
511
+ "28645-51-4": 248.0,
512
+ "290311-72-7": 400.0,
513
+ "29171-20-8": 140.0,
514
+ "29214-60-6": 92.0,
515
+ "29548-30-9": 483.0,
516
+ "2983-37-1": 44.0,
517
+ "2986-54-1": 76.0,
518
+ "3016-19-1": 120.0,
519
+ "30168-23-1": 240.0,
520
+ "30207-98-8": 192.0,
521
+ "30310-41-9": 504.0,
522
+ "3033-23-6": 388.0,
523
+ "30772-69-1": 168.0,
524
+ "3100-36-5 (Z)": 100.0,
525
+ "31375-17-4": 31.0,
526
+ "313973-37-4": 196.0,
527
+ "3142-72-1": 380.0,
528
+ "31501-11-8": 8.0,
529
+ "3155-71-3": 236.0,
530
+ "31906-04-4": 400.0,
531
+ "31983-27-4": 48.0,
532
+ "3208-40-0": 169.0,
533
+ "3209-13-0": 400.0,
534
+ "32210-23-4": 8.0,
535
+ "32214-91-8": 196.0,
536
+ "32388-55-9": 400.0,
537
+ "3240-09-3": 1.0,
538
+ "3240-29-7": 24.0,
539
+ "326-61-4": 400.0,
540
+ "32764-98-0": 400.0,
541
+ "3301-90-4": 156.0,
542
+ "334-48-5": 336.0,
543
+ "33467-73-1": 1.0,
544
+ "33662-58-7": 400.0,
545
+ "33673-62-0": 168.0,
546
+ "33704-61-9": 48.0,
547
+ "33885-51-7": 84.0,
548
+ "3391-83-1": 400.0,
549
+ "3407-42-9": 400.0,
550
+ "34131-98-1": 140.0,
551
+ "3452-97-9": 16.0,
552
+ "34686-67-4": 112.0,
553
+ "34686-71-0": 400.0,
554
+ "34687-46-2": 36.0,
555
+ "3487-99-8": 344.0,
556
+ "34902-57-3": 348.0,
557
+ "350-03-8": 45.0,
558
+ "35044-59-8": 164.0,
559
+ "35044-68-9": 191.0,
560
+ "3508-98-3": 112.0,
561
+ "35087-49-1": 64.0,
562
+ "351343-77-6": 108.0,
563
+ "35154-45-1": 4.0,
564
+ "3549-23-3": 172.0,
565
+ "3558-60-9": 88.0,
566
+ "3583-00-4": 116.0,
567
+ "35852-46-1": 4.0,
568
+ "35854-86-5": 63.0,
569
+ "3608-11-5": 28.0,
570
+ "3613-30-7 (S)": 48.0,
571
+ "36306-87-3": 96.0,
572
+ "36431-72-8": 47.0,
573
+ "3658-77-3": 320.0,
574
+ "3658-93-3": 4.0,
575
+ "36653-82-4": 132.0,
576
+ "36701-01-6": 88.0,
577
+ "36977-92-1": 4.0,
578
+ "37172-02-4": 24.0,
579
+ "37172-05-7": 64.0,
580
+ "37172-53-5": 124.0,
581
+ "3720-16-9": 48.0,
582
+ "37514-30-0": 28.0,
583
+ "37609-25-9": 400.0,
584
+ "37677-14-8": 244.0,
585
+ "37837-44-8": 400.0,
586
+ "3796-70-1": 192.0,
587
+ "38285-49-3": 356.0,
588
+ "38462-23-6": 304.0,
589
+ "3848-24-6": 220.0,
590
+ "39067-39-5": 124.0,
591
+ "39067-80-6": 197.0,
592
+ "39212-23-2": 59.0,
593
+ "39252-03-4": 200.0,
594
+ "3943-74-6": 232.0,
595
+ "39736-25-9": 348.0,
596
+ "39872-57-6": 128.0,
597
+ "39900-38-4": 156.0,
598
+ "39924-52-2": 256.0,
599
+ "400052-49-5": 23.0,
600
+ "40010-99-9": 400.0,
601
+ "40188-41-8": 24.0,
602
+ "40203-73-4": 16.0,
603
+ "40527-42-2": 88.0,
604
+ "406488-30-0": 240.0,
605
+ "40789-98-8 (S)": 133.0,
606
+ "40853-53-0": 8.0,
607
+ "40853-56-3": 16.0,
608
+ "40910-49-4": 24.0,
609
+ "40918-97-6": 356.0,
610
+ "40923-64-6": 901.0,
611
+ "4112-89-4": 400.0,
612
+ "41199-19-3": 344.0,
613
+ "41414-75-9": 400.0,
614
+ "41496-43-9": 168.0,
615
+ "4166-20-5 (S)": 296.0,
616
+ "41724-19-0": 48.0,
617
+ "4180-23-8": 20.0,
618
+ "41816-03-9": 96.0,
619
+ "41890-92-0": 112.0,
620
+ "4230-97-1": 8.0,
621
+ "42436-07-7": 171.0,
622
+ "42604-12-6": 124.0,
623
+ "426218-78-2": 24.0,
624
+ "42824-62-4": 160.0,
625
+ "43052-87-5": 66.0,
626
+ "431-03-8": 44.0,
627
+ "432-25-7": 85.0,
628
+ "4359-57-3": 20.0,
629
+ "4364-06-1": 96.0,
630
+ "4395-92-0": 256.0,
631
+ "4407-36-7": 400.0,
632
+ "4430-31-3": 400.0,
633
+ "4442-79-9": 24.0,
634
+ "4501-58-0": 8.0,
635
+ "4573-50-6": 87.0,
636
+ "459-80-3": 272.0,
637
+ "4602-84-0": 400.0,
638
+ "4621-04-9": 12.0,
639
+ "4630-07-3 (RSR)": 336.0,
640
+ "4630-82-4": 200.0,
641
+ "464-45-9": 16.0,
642
+ "464-49-3": 160.0,
643
+ "4674-50-4": 236.0,
644
+ "469-61-4": 112.0,
645
+ "4695-62-9": 4.0,
646
+ "470-67-7": 4.0,
647
+ "470-82-6": 4.0,
648
+ "4707-47-5": 400.0,
649
+ "472-66-2": 39.0,
650
+ "473-03-0": 400.0,
651
+ "4747-07-3": 2.0,
652
+ "475-20-7": 24.0,
653
+ "4819-67-4": 16.0,
654
+ "4864-61-3": 20.0,
655
+ "488-10-8": 68.0,
656
+ "490-03-9": 29.0,
657
+ "4927-36-0": 24.0,
658
+ "4927-39-3": 20.0,
659
+ "4940-11-8": 360.0,
660
+ "4948-28-1": 28.0,
661
+ "495-62-5": 104.0,
662
+ "499-44-5": 48.0,
663
+ "499-70-7": 4.0,
664
+ "499-75-2": 272.0,
665
+ "502-72-7": 320.0,
666
+ "503-74-2": 400.0,
667
+ "50373-36-9": 20.0,
668
+ "505-32-8": 68.0,
669
+ "50607-64-2": 400.0,
670
+ "50816-18-7": 24.0,
671
+ "512-13-0": 12.0,
672
+ "513-86-0": 28.0,
673
+ "5146-66-7": 56.0,
674
+ "515-00-4": 52.0,
675
+ "515-03-7 (RRS)": 292.0,
676
+ "51566-62-2": 16.0,
677
+ "5182-36-5": 68.0,
678
+ "5205-11-8": 96.0,
679
+ "52210-18-1": 24.0,
680
+ "5240-32-4": 72.0,
681
+ "52474-60-9": 104.0,
682
+ "52557-97-8": 28.0,
683
+ "52788-71-3": 312.0,
684
+ "53053-51-3": 196.0,
685
+ "53243-60-0": 212.0,
686
+ "5331-14-6": 16.0,
687
+ "53338-05-9": 20.0,
688
+ "53398-85-9": 4.0,
689
+ "53398-86-0": 21.0,
690
+ "53475-15-3 (S)": 1.0,
691
+ "53498-32-1": 89.0,
692
+ "53584-56-8": 28.0,
693
+ "536-50-5": 20.0,
694
+ "536-59-4": 269.0,
695
+ "536-60-7": 68.0,
696
+ "5362-56-1": 11.0,
697
+ "53751-40-9": 16.0,
698
+ "53767-93-4": 4.0,
699
+ "538-86-3": 4.0,
700
+ "539-82-2": 4.0,
701
+ "539-88-8": 4.0,
702
+ "5392-40-5": 12.0,
703
+ "5396-89-4": 24.0,
704
+ "540-18-1": 4.0,
705
+ "5405-41-4": 4.0,
706
+ "5405-58-3": 12.0,
707
+ "5406-58-6": 49.0,
708
+ "54082-68-7": 72.0,
709
+ "541-91-3": 400.0,
710
+ "5413-60-5": 100.0,
711
+ "542-46-1": 400.0,
712
+ "5426-78-8": 196.0,
713
+ "543-39-5": 28.0,
714
+ "5434-57-1": 4.0,
715
+ "54340-90-8": 4.0,
716
+ "5435-64-3": 5.0,
717
+ "544-40-1": 20.0,
718
+ "544-63-8": 400.0,
719
+ "5442-00-2": 12.0,
720
+ "54440-17-4": 168.0,
721
+ "54464-57-2": 172.0,
722
+ "54484-73-0": 6.0,
723
+ "5461-08-5": 70.0,
724
+ "5462-06-6": 48.0,
725
+ "5471-51-2": 400.0,
726
+ "54830-99-8": 100.0,
727
+ "54982-83-1": 348.0,
728
+ "5502-75-0": 72.0,
729
+ "55031-15-7": 5.0,
730
+ "55066-48-3": 400.0,
731
+ "55066-49-4": 184.0,
732
+ "55066-56-3": 40.0,
733
+ "551-08-6": 376.0,
734
+ "554-12-1": 4.0,
735
+ "55418-52-5": 400.0,
736
+ "556-24-1": 96.0,
737
+ "557-48-2": 240.0,
738
+ "55719-85-2": 240.0,
739
+ "5585-39-7": 56.0,
740
+ "5595-79-9": 400.0,
741
+ "560-88-3 (SRR)": 400.0,
742
+ "56011-02-0": 32.0,
743
+ "56172-46-4": 51.0,
744
+ "562-74-3": 20.0,
745
+ "564-20-5": 108.0,
746
+ "564-94-3": 48.0,
747
+ "5655-61-8": 24.0,
748
+ "56836-93-2": 137.0,
749
+ "56973-85-4": 348.0,
750
+ "57-10-3": 400.0,
751
+ "57082-24-3": 12.0,
752
+ "57378-68-4": 220.0,
753
+ "57576-09-7 (RSR)": 24.0,
754
+ "5760-50-9": 24.0,
755
+ "5764-85-2": 284.0,
756
+ "577-16-2": 27.0,
757
+ "579-74-8": 6.0,
758
+ "5794-03-6": 4.0,
759
+ "5794-04-7": 4.0,
760
+ "58-86-6": 285.0,
761
+ "58214-97-4": 112.0,
762
+ "58296-81-4": 366.0,
763
+ "5837-78-5": 24.0,
764
+ "58430-94-7": 4.0,
765
+ "58555-74-1": 4.0,
766
+ "58567-11-6": 168.0,
767
+ "586-62-9": 4.0,
768
+ "5870-93-9": 6.0,
769
+ "589-59-3": 64.0,
770
+ "589-66-2": 137.0,
771
+ "58985-18-5": 4.0,
772
+ "590-86-3": 96.0,
773
+ "59056-62-1": 280.0,
774
+ "59056-64-3": 208.0,
775
+ "59056-70-1": 208.0,
776
+ "59151-19-8": 24.0,
777
+ "59323-76-1": 56.0,
778
+ "59558-23-5": 292.0,
779
+ "5989-54-8": 4.0,
780
+ "60-12-8": 32.0,
781
+ "600-14-6": 12.0,
782
+ "60335-71-9": 72.0,
783
+ "60415-61-4": 1.0,
784
+ "60512-85-8": 252.0,
785
+ "607-97-6 (S)": 2.0,
786
+ "60763-41-9": 400.0,
787
+ "60788-25-2": 400.0,
788
+ "6091-50-5": 79.0,
789
+ "611-13-2": 64.0,
790
+ "61444-38-0": 13.0,
791
+ "61699-38-5": 68.0,
792
+ "61792-11-8": 400.0,
793
+ "619-01-2": 20.0,
794
+ "6191-71-5": 8.0,
795
+ "61920-45-4": 4.0,
796
+ "61931-80-4": 16.0,
797
+ "61931-81-5": 21.0,
798
+ "620-23-5": 2.0,
799
+ "62079-29-2": 80.0,
800
+ "621-82-9": 400.0,
801
+ "622-45-7": 4.0,
802
+ "622-62-8": 141.0,
803
+ "622-78-6": 15.0,
804
+ "623-17-6": 12.0,
805
+ "623-19-8": 24.0,
806
+ "62395-45-3": 32.0,
807
+ "62439-41-2": 366.0,
808
+ "62563-80-8": 357.0,
809
+ "6259-76-3": 40.0,
810
+ "628-97-7": 108.0,
811
+ "629-33-4": 4.0,
812
+ "629-63-0": 308.0,
813
+ "6290-17-1": 12.0,
814
+ "6297-41-2": 4.0,
815
+ "63450-30-6": 2.0,
816
+ "63500-71-0": 24.0,
817
+ "637-64-9": 3.0,
818
+ "637-65-0": 4.0,
819
+ "63767-86-2": 196.0,
820
+ "638-49-3": 4.0,
821
+ "64-18-6": 16.0,
822
+ "64-19-7": 10.0,
823
+ "64001-15-6": 24.0,
824
+ "6413-10-1": 12.0,
825
+ "6413-26-9": 6.0,
826
+ "64165-57-7": 168.0,
827
+ "64275-73-6 (E)": 12.0,
828
+ "6485-40-1": 24.0,
829
+ "6493-80-7": 4.0,
830
+ "65113-95-3": 192.0,
831
+ "65113-99-7": 400.0,
832
+ "65155-45-5": 3.0,
833
+ "65405-70-1": 296.0,
834
+ "65405-72-3": 360.0,
835
+ "65405-73-4": 312.0,
836
+ "65405-76-7": 24.0,
837
+ "65405-77-8": 216.0,
838
+ "65405-84-7": 24.0,
839
+ "65442-31-1": 168.0,
840
+ "65443-14-3": 12.0,
841
+ "65588-69-4": 400.0,
842
+ "656-53-1": 240.0,
843
+ "66-25-1": 4.0,
844
+ "66062-78-0": 36.0,
845
+ "66068-84-6": 400.0,
846
+ "66327-54-6": 116.0,
847
+ "66408-78-4 (E)": 12.0,
848
+ "6658-48-6": 336.0,
849
+ "66912-24-1": 8.0,
850
+ "67-56-1": 4.0,
851
+ "67-63-0": 4.0,
852
+ "6707-60-4": 92.0,
853
+ "675-09-2": 400.0,
854
+ "67601-05-2": 8.0,
855
+ "676125-00-1": 192.0,
856
+ "67633-92-5": 168.0,
857
+ "67633-94-7": 36.0,
858
+ "67633-96-9": 12.0,
859
+ "67633-99-2": 312.0,
860
+ "67634-00-8": 84.0,
861
+ "67634-07-5": 4.0,
862
+ "67634-12-2": 400.0,
863
+ "67634-15-5": 80.0,
864
+ "67634-17-7": 40.0,
865
+ "67634-20-2": 344.0,
866
+ "67634-22-4": 4.0,
867
+ "67634-23-5": 132.0,
868
+ "67634-25-7": 24.0,
869
+ "67662-96-8": 40.0,
870
+ "67663-01-8": 188.0,
871
+ "67674-36-6 (EE)": 92.0,
872
+ "67674-46-8": 2.0,
873
+ "67707-75-9": 8.0,
874
+ "67715-80-4": 56.0,
875
+ "67739-11-1": 400.0,
876
+ "67746-30-9": 1.0,
877
+ "67770-79-0": 400.0,
878
+ "67785-76-6": 244.0,
879
+ "67785-77-7": 100.0,
880
+ "67801-20-1 (E)": 400.0,
881
+ "67801-33-6": 20.0,
882
+ "67801-44-9": 400.0,
883
+ "67801-47-2": 260.0,
884
+ "67801-64-3": 92.0,
885
+ "67801-65-4": 16.0,
886
+ "67845-30-1": 400.0,
887
+ "67845-42-5": 400.0,
888
+ "67874-67-3": 172.0,
889
+ "67874-72-0": 16.0,
890
+ "67874-81-1": 124.0,
891
+ "6789-80-6": 240.0,
892
+ "6789-88-4": 192.0,
893
+ "67919-67-9": 400.0,
894
+ "67924-13-4": 308.0,
895
+ "67999-56-8": 64.0,
896
+ "68039-24-7": 192.0,
897
+ "68039-39-4": 144.0,
898
+ "68039-44-1": 48.0,
899
+ "68039-47-4": 92.0,
900
+ "68039-48-5": 16.0,
901
+ "68039-49-6": 8.0,
902
+ "68039-69-0": 41.0,
903
+ "68039-73-6": 64.0,
904
+ "68083-58-9": 52.0,
905
+ "68084-03-7": 96.0,
906
+ "68084-04-8": 72.0,
907
+ "6812-78-8": 208.0,
908
+ "68129-81-7": 341.0,
909
+ "68133-72-2": 216.0,
910
+ "68133-76-6": 17.0,
911
+ "68133-79-9": 216.0,
912
+ "68140-48-7": 400.0,
913
+ "68141-17-3": 400.0,
914
+ "68213-87-6": 312.0,
915
+ "68228-06-8": 12.0,
916
+ "68228-09-1": 400.0,
917
+ "68259-33-6": 68.0,
918
+ "68345-22-2": 40.0,
919
+ "68391-29-7": 168.0,
920
+ "68398-18-5": 53.0,
921
+ "68419-46-5 (Z)": 16.0,
922
+ "68459-99-4": 128.0,
923
+ "68480-06-8": 64.0,
924
+ "68480-11-5": 12.0,
925
+ "68480-15-9": 28.0,
926
+ "68516-18-7": 400.0,
927
+ "68527-06-0": 204.0,
928
+ "68527-74-2": 400.0,
929
+ "68527-76-4": 304.0,
930
+ "68527-77-5": 76.0,
931
+ "68555-57-7": 48.0,
932
+ "68555-58-8": 192.0,
933
+ "68555-60-2": 164.0,
934
+ "68555-62-4 (E)": 276.0,
935
+ "68555-63-5": 100.0,
936
+ "68555-95-3": 8.0,
937
+ "68603-22-5": 400.0,
938
+ "68611-23-4": 400.0,
939
+ "68648-34-0": 376.0,
940
+ "68683-20-5": 8.0,
941
+ "68698-57-7": 80.0,
942
+ "68738-96-5": 136.0,
943
+ "68738-99-8": 400.0,
944
+ "6876-13-7": 8.0,
945
+ "68804-02-4": 264.0,
946
+ "68845-00-1": 96.0,
947
+ "68845-02-3": 268.0,
948
+ "68845-36-3": 24.0,
949
+ "68877-29-2": 400.0,
950
+ "68901-15-5": 32.0,
951
+ "68908-82-7": 340.0,
952
+ "68909-04-6": 400.0,
953
+ "68916-14-3": 328.0,
954
+ "68917-34-0": 400.0,
955
+ "68956-56-9": 8.0,
956
+ "68959-28-4": 340.0,
957
+ "68966-86-9": 73.0,
958
+ "68991-97-9": 140.0,
959
+ "69102-96-1": 400.0,
960
+ "69103-01-1": 12.0,
961
+ "69103-20-4": 24.0,
962
+ "69103-24-8": 16.0,
963
+ "69104-96-7": 14.0,
964
+ "69121-78-4": 100.0,
965
+ "692-86-4": 20.0,
966
+ "69300-15-8": 84.0,
967
+ "6931-54-0": 6.0,
968
+ "69486-14-2": 336.0,
969
+ "695-06-7": 128.0,
970
+ "698-10-2": 400.0,
971
+ "698-76-0": 400.0,
972
+ "69834-10-2": 400.0,
973
+ "69929-17-5": 56.0,
974
+ "7011-83-8": 192.0,
975
+ "70214-77-6": 56.0,
976
+ "70266-48-7": 128.0,
977
+ "705-86-2": 336.0,
978
+ "706-14-9": 256.0,
979
+ "707-29-9": 16.0,
980
+ "70851-61-5": 168.0,
981
+ "70955-71-4": 400.0,
982
+ "71-23-8": 4.0,
983
+ "71-36-3": 4.0,
984
+ "710-04-3": 400.0,
985
+ "71048-82-3": 220.0,
986
+ "71159-90-5": 105.0,
987
+ "713-95-1": 336.0,
988
+ "7143-69-3": 12.0,
989
+ "7149-26-0": 336.0,
990
+ "71566-51-3": 100.0,
991
+ "71566-53-5": 44.0,
992
+ "71648-43-6": 336.0,
993
+ "71735-79-0": 268.0,
994
+ "71832-76-3": 68.0,
995
+ "72089-08-8": 400.0,
996
+ "72117-72-7": 96.0,
997
+ "7212-44-4": 100.0,
998
+ "7217-59-6": 400.0,
999
+ "72214-23-4": 12.0,
1000
+ "72403-67-9": 64.0,
1001
+ "72429-08-4": 23.0,
1002
+ "72797-17-2": 21.0,
1003
+ "7289-52-3": 12.0,
1004
+ "72894-12-3": 400.0,
1005
+ "72903-27-6": 48.0,
1006
+ "72928-51-9": 16.0,
1007
+ "72968-25-3": 168.0,
1008
+ "73018-51-6": 12.0,
1009
+ "7306-12-9": 24.0,
1010
+ "7335-26-4": 268.0,
1011
+ "73545-18-3": 4.0,
1012
+ "7367-81-9": 47.0,
1013
+ "7392-19-0": 4.0,
1014
+ "73970-40-8": 400.0,
1015
+ "7403-42-1": 4.0,
1016
+ "7416-35-5": 4.0,
1017
+ "74338-72-0": 5.0,
1018
+ "74431-24-6": 39.0,
1019
+ "7452-79-1": 4.0,
1020
+ "7492-37-7": 133.0,
1021
+ "7492-44-6 (Z)": 168.0,
1022
+ "7492-45-7": 2.0,
1023
+ "7492-66-2": 32.0,
1024
+ "7492-67-3": 356.0,
1025
+ "7493-57-4": 29.0,
1026
+ "7493-69-8": 4.0,
1027
+ "7493-74-5": 304.0,
1028
+ "7493-78-9 (Z)": 400.0,
1029
+ "75-18-3": 4.0,
1030
+ "75-33-2": 9.0,
1031
+ "75147-23-8": 400.0,
1032
+ "7540-51-4": 56.0,
1033
+ "7541-49-3": 168.0,
1034
+ "7549-37-3": 7.0,
1035
+ "75490-39-0": 68.0,
1036
+ "76-09-5": 400.0,
1037
+ "765-05-9": 4.0,
1038
+ "765-70-8": 16.0,
1039
+ "76649-16-6": 8.0,
1040
+ "76649-17-7": 12.0,
1041
+ "77-53-2": 400.0,
1042
+ "77-54-3": 400.0,
1043
+ "77-83-8": 241.0,
1044
+ "77-90-7": 204.0,
1045
+ "7756-96-9": 276.0,
1046
+ "7779-65-9": 17.0,
1047
+ "77851-07-1": 20.0,
1048
+ "7786-44-9": 168.0,
1049
+ "7786-61-0": 240.0,
1050
+ "7786-67-6": 28.0,
1051
+ "77923-74-1": 85.0,
1052
+ "78-35-3": 8.0,
1053
+ "78-37-5": 132.0,
1054
+ "78-69-3": 12.0,
1055
+ "78-70-6": 12.0,
1056
+ "78-83-1": 4.0,
1057
+ "78-84-2": 84.0,
1058
+ "78183-56-9": 28.0,
1059
+ "78649-62-4": 12.0,
1060
+ "78761-38-3": 184.0,
1061
+ "78761-39-4": 152.0,
1062
+ "79-09-4": 8.0,
1063
+ "79-31-2": 8.0,
1064
+ "79-42-5": 400.0,
1065
+ "79-69-6": 104.0,
1066
+ "79-70-9": 264.0,
1067
+ "79-78-7 (E)": 84.0,
1068
+ "80-25-1": 12.0,
1069
+ "80-26-2": 20.0,
1070
+ "80-54-6": 236.0,
1071
+ "80-56-8": 4.0,
1072
+ "80-59-1": 16.0,
1073
+ "8000-41-7": 24.0,
1074
+ "8007-35-0": 24.0,
1075
+ "80118-06-5": 12.0,
1076
+ "8013-90-9": 112.0,
1077
+ "80449-58-7": 400.0,
1078
+ "80480-24-6": 24.0,
1079
+ "8050-15-5": 400.0,
1080
+ "80657-64-3": 144.0,
1081
+ "80748-58-9": 400.0,
1082
+ "80858-47-5": 168.0,
1083
+ "81-14-1": 400.0,
1084
+ "81-15-2": 400.0,
1085
+ "815580-59-7": 3.0,
1086
+ "81782-77-6": 31.0,
1087
+ "81783-01-9": 168.0,
1088
+ "81786-73-4": 12.0,
1089
+ "81925-81-7": 2.0,
1090
+ "82356-51-2": 336.0,
1091
+ "82461-14-1": 24.0,
1092
+ "82784-84-7": 20.0,
1093
+ "83-34-1": 400.0,
1094
+ "83-66-9": 400.0,
1095
+ "83926-73-2": 18.0,
1096
+ "84029-92-5 (Z)": 168.0,
1097
+ "84029-93-6": 24.0,
1098
+ "84434-18-4": 48.0,
1099
+ "84560-00-9": 48.0,
1100
+ "84642-61-5": 12.0,
1101
+ "85-91-6": 48.0,
1102
+ "851768-51-9": 22.0,
1103
+ "85351-07-1": 140.0,
1104
+ "85508-08-3": 19.0,
1105
+ "85586-67-0": 19.0,
1106
+ "86803-90-9": 287.0,
1107
+ "87-19-4": 48.0,
1108
+ "87-20-7": 124.0,
1109
+ "87-22-9": 232.0,
1110
+ "87-25-2": 28.0,
1111
+ "87-41-2": 28.0,
1112
+ "87-44-5": 44.0,
1113
+ "87061-04-9": 81.0,
1114
+ "87118-95-4": 44.0,
1115
+ "874-90-8": 400.0,
1116
+ "87641-23-4": 80.0,
1117
+ "87641-24-5": 48.0,
1118
+ "87731-18-8": 12.0,
1119
+ "88-09-5": 124.0,
1120
+ "88-29-9": 400.0,
1121
+ "88-41-5": 8.0,
1122
+ "89-43-0": 400.0,
1123
+ "89-74-7": 400.0,
1124
+ "89-78-1": 32.0,
1125
+ "89-79-2": 28.0,
1126
+ "89-82-7": 8.0,
1127
+ "89-83-8": 176.0,
1128
+ "89780-06-3": 400.0,
1129
+ "90-05-1": 280.0,
1130
+ "90-17-5": 400.0,
1131
+ "90-42-6": 44.0,
1132
+ "90-87-9": 12.0,
1133
+ "90397-38-9": 16.0,
1134
+ "90530-04-4": 12.0,
1135
+ "91-10-1": 356.0,
1136
+ "91-50-9": 208.0,
1137
+ "91-51-0": 400.0,
1138
+ "91-61-2": 184.0,
1139
+ "91-62-3": 400.0,
1140
+ "91-64-5": 364.0,
1141
+ "91-87-2 (Z)": 16.0,
1142
+ "91482-37-0": 72.0,
1143
+ "92-48-8": 347.0,
1144
+ "92015-65-1": 168.0,
1145
+ "925-78-0": 8.0,
1146
+ "92585-24-5": 348.0,
1147
+ "928-91-6": 6.0,
1148
+ "928-96-1": 4.0,
1149
+ "928-97-2": 4.0,
1150
+ "929253-05-4": 20.0,
1151
+ "93-04-9": 400.0,
1152
+ "93-08-3": 400.0,
1153
+ "93-15-2": 60.0,
1154
+ "93-16-3": 240.0,
1155
+ "93-18-5": 400.0,
1156
+ "93-19-6": 160.0,
1157
+ "93-28-7": 400.0,
1158
+ "93-29-8": 400.0,
1159
+ "93-51-6": 132.0,
1160
+ "93-53-8": 24.0,
1161
+ "93-58-3": 4.0,
1162
+ "93-89-0": 12.0,
1163
+ "93-91-4": 44.0,
1164
+ "93-92-5": 8.0,
1165
+ "93894-30-5": 400.0,
1166
+ "93904-56-4": 24.0,
1167
+ "93939-86-7": 48.0,
1168
+ "93952-58-0": 120.0,
1169
+ "93981-50-1": 72.0,
1170
+ "94-02-0": 346.0,
1171
+ "94-46-2": 96.0,
1172
+ "94-47-3": 400.0,
1173
+ "94-59-7": 44.0,
1174
+ "94-86-0": 400.0,
1175
+ "94087-23-7": 32.0,
1176
+ "941-98-0": 400.0,
1177
+ "94134-03-9 (E)": 6.0,
1178
+ "94201-19-1": 168.0,
1179
+ "94201-73-7": 48.0,
1180
+ "94248-21-2": 400.0,
1181
+ "94386-48-8": 400.0,
1182
+ "94406-15-2": 24.0,
1183
+ "94704-89-9": 284.0,
1184
+ "95-21-6": 9.0,
1185
+ "95-41-0": 32.0,
1186
+ "95-48-7": 41.0,
1187
+ "950-33-4": 284.0,
1188
+ "950919-28-5": 336.0,
1189
+ "95962-14-4": 380.0,
1190
+ "97-42-7": 163.0,
1191
+ "97-53-0": 52.0,
1192
+ "97-54-1": 400.0,
1193
+ "97-62-1": 4.0,
1194
+ "97-64-3": 4.0,
1195
+ "97-89-2": 68.0,
1196
+ "97358-54-8": 2.0,
1197
+ "97375-48-9": 40.0,
1198
+ "97384-48-0": 376.0,
1199
+ "98-00-0": 44.0,
1200
+ "98-01-1": 4.0,
1201
+ "98-53-3": 16.0,
1202
+ "98-55-5": 20.0,
1203
+ "98-85-1": 8.0,
1204
+ "98-86-2": 7.0,
1205
+ "99-48-9": 51.0,
1206
+ "99-83-2": 4.0,
1207
+ "99-85-4": 4.0,
1208
+ "99-91-2": 216.0,
1209
+ "99-93-4": 400.0,
1210
+ "996-97-4": 68.0
1211
+ },
1212
+ "total_cas": 1208
1213
+ }
scripts/fetch_goodscents_substantivity.py ADDED
@@ -0,0 +1,177 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """Download and process GoodScents/Pyrfume substantivity data.
3
+ Substantivity = how long a material's odor lasts on a substrate (hours).
4
+ This is the physical basis for top/middle/base classification.
5
+ """
6
+ import pandas as pd
7
+ import json
8
+ import numpy as np
9
+ from collections import defaultdict
10
+
11
+ BASE = "https://raw.githubusercontent.com/pyrfume/pyrfume-data/main/goodscents"
12
+
13
+ # Download all relevant files
14
+ print("Downloading GoodScents data from Pyrfume...")
15
+ opl = pd.read_csv(f"{BASE}/opl.csv")
16
+ data_rw_opl = pd.read_csv(f"{BASE}/data_rw_opl.csv")
17
+ data_rw_odor = pd.read_csv(f"{BASE}/data_rw_odor.csv")
18
+ stimuli = pd.read_csv(f"{BASE}/stimuli.csv")
19
+ molecules = pd.read_csv(f"{BASE}/molecules.csv")
20
+
21
+ print(f" opl: {opl.shape}")
22
+ print(f" data_rw_opl: {data_rw_opl.shape}")
23
+ print(f" data_rw_odor: {data_rw_odor.shape}")
24
+ print(f" stimuli: {stimuli.shape}")
25
+ print(f" molecules: {molecules.shape}")
26
+
27
+ # --- Step 1: Build TGSC ID -> CAS mapping ---
28
+ # data_rw_opl links TGSC ID -> CAS Number via TGSC OPL ID
29
+ # Some entries have multiple OPL IDs per TGSC ID
30
+ tgsc_to_cas = {}
31
+ for _, row in data_rw_opl.iterrows():
32
+ tgsc_id = row["TGSC ID"]
33
+ cas = str(row.get("CAS Number", "")).strip()
34
+ if cas and cas != "nan" and cas not in tgsc_to_cas:
35
+ tgsc_to_cas[tgsc_id] = cas
36
+
37
+ print(f"\nTGSC ID -> CAS mapping: {len(tgsc_to_cas)} entries")
38
+
39
+ # --- Step 2: Build TGSC ID -> Substantivity mapping ---
40
+ # data_rw_odor has the substantivity columns
41
+ tgsc_to_subst = {}
42
+ for _, row in data_rw_odor.iterrows():
43
+ tgsc_id = row["TGSC ID"]
44
+ subst = row.get("Substantivity (Hours)")
45
+ subst_min = row.get("Substantivity Min (Hours)")
46
+ subst_max = row.get("Substantivity Max (Hours)")
47
+
48
+ if pd.notna(subst) and subst > 0:
49
+ tgsc_to_subst[tgsc_id] = float(subst)
50
+ elif pd.notna(subst_min) and pd.notna(subst_max):
51
+ tgsc_to_subst[tgsc_id] = (float(subst_min) + float(subst_max)) / 2
52
+
53
+ print(f"TGSC ID -> Substantivity: {len(tgsc_to_subst)} entries")
54
+
55
+ # Substantivity distribution
56
+ if tgsc_to_subst:
57
+ vals = np.array(list(tgsc_to_subst.values()))
58
+ print(f" Range: {vals.min():.1f} - {vals.max():.1f} hours")
59
+ print(f" Median: {np.median(vals):.1f}h, Mean: {vals.mean():.1f}h")
60
+ print(f" Quartiles: {np.percentile(vals, 25):.1f} / {np.percentile(vals, 50):.1f} / {np.percentile(vals, 75):.1f}h")
61
+
62
+ # --- Step 3: Build CAS -> Substantivity mapping ---
63
+ cas_to_subst = {}
64
+ for tgsc_id, subst in tgsc_to_subst.items():
65
+ cas = tgsc_to_cas.get(tgsc_id)
66
+ if cas:
67
+ # If multiple entries, keep the one with higher substantivity (pure material)
68
+ if cas not in cas_to_subst or subst > cas_to_subst[cas]:
69
+ cas_to_subst[cas] = subst
70
+
71
+ print(f"\nCAS -> Substantivity: {len(cas_to_subst)} entries")
72
+
73
+ # --- Step 4: Derive tier from substantivity ---
74
+ # Poucher thresholds in hours (approximate):
75
+ # Top notes: < 2 hours (evaporate quickly)
76
+ # Middle notes: 2-8 hours
77
+ # Base notes: > 8 hours (long-lasting)
78
+ # These are based on perfumery practice: materials are smelled on blotter at intervals
79
+ cas_to_tier_gs = {}
80
+ for cas, subst in cas_to_subst.items():
81
+ if subst < 2:
82
+ cas_to_tier_gs[cas] = "top"
83
+ elif subst < 8:
84
+ cas_to_tier_gs[cas] = "mid"
85
+ else:
86
+ cas_to_tier_gs[cas] = "base"
87
+
88
+ tier_counts = defaultdict(int)
89
+ for tier in cas_to_tier_gs.values():
90
+ tier_counts[tier] += 1
91
+ print(f"CAS -> Tier (from substantivity):")
92
+ for t in ["top", "mid", "base"]:
93
+ print(f" {t}: {tier_counts[t]}")
94
+
95
+ # --- Step 5: Compare with our dataset ---
96
+ with open("data/empirical_dataset_v8.jsonl") as f:
97
+ records = [json.loads(l) for l in f]
98
+
99
+ dataset_cas = set()
100
+ for r in records:
101
+ if r.get("is_control"):
102
+ continue
103
+ for comp in r.get("formula", []):
104
+ cas = comp.get("cas", "")
105
+ if cas:
106
+ dataset_cas.add(cas)
107
+
108
+ matched = dataset_cas.intersection(set(cas_to_subst.keys()))
109
+ print(f"\n=== Dataset Coverage ===")
110
+ print(f"Dataset CAS: {len(dataset_cas)}")
111
+ print(f"Matched with GoodScents substantivity: {len(matched)} ({100*len(matched)/len(dataset_cas):.1f}%)")
112
+
113
+ # Also check with Poucher tiers
114
+ with open("data/poucher_tier_lookup_expanded.json") as f:
115
+ poucher_data = json.load(f)
116
+ poucher_tiers = poucher_data["cas_to_tier"]
117
+ poucher_matched = dataset_cas.intersection(set(poucher_tiers.keys()))
118
+ combined_matched = dataset_cas.intersection(set(poucher_tiers.keys()) | set(cas_to_tier_gs.keys()))
119
+ print(f"Poucher tier matched: {len(poucher_matched)} ({100*len(poucher_matched)/len(dataset_cas):.1f}%)")
120
+ print(f"Combined (Poucher + GoodScents): {len(combined_matched)} ({100*len(combined_matched)/len(dataset_cas):.1f}%)")
121
+
122
+ # --- Step 6: Validate against Poucher ---
123
+ # Where we have both Poucher tier and GoodScents substantivity, check agreement
124
+ overlap = set(poucher_tiers.keys()).intersection(set(cas_to_tier_gs.keys()))
125
+ print(f"\n=== Validation: Poucher tier vs GoodScents tier (n={len(overlap)}) ===")
126
+ if overlap:
127
+ from sklearn.metrics import cohen_kappa_score
128
+ poucher_labels = [poucher_tiers[c] for c in overlap]
129
+ gs_labels = [cas_to_tier_gs[c] for c in overlap]
130
+ kappa = cohen_kappa_score(poucher_labels, gs_labels)
131
+ print(f"Cohen's kappa: {kappa:.3f}")
132
+
133
+ # Confusion matrix
134
+ tier_to_idx = {"top": 0, "mid": 1, "base": 2}
135
+ matrix = np.zeros((3, 3), dtype=int)
136
+ for c in overlap:
137
+ matrix[tier_to_idx[poucher_tiers[c]], tier_to_idx[gs_labels[list(overlap).index(c)]]] += 1
138
+
139
+ print(f"\nConfusion (rows=Poucher, cols=GoodScents):")
140
+ print(f" {'':12s} {'GS-top':>10s} {'GS-mid':>10s} {'GS-base':>10s} {'Total':>10s}")
141
+ for i, tier in enumerate(["top", "mid", "base"]):
142
+ row = matrix[i]
143
+ print(f" Poucher-{tier:5s} {row[0]:>10d} {row[1]:>10d} {row[2]:>10d} {sum(row):>10d}")
144
+
145
+ # --- Step 7: Save everything ---
146
+ output = {
147
+ "cas_to_substantivity_hours": {k: round(v, 2) for k, v in sorted(cas_to_subst.items())},
148
+ "cas_to_tier": {k: v for k, v in sorted(cas_to_tier_gs.items())},
149
+ "tier_thresholds": {"top": "<2h", "mid": "2-8h", "base": ">8h"},
150
+ "total_cas": len(cas_to_subst),
151
+ }
152
+ with open("data/goodscents_substantivity.json", "w") as f:
153
+ json.dump(output, f, indent=2)
154
+ print(f"\nSaved to data/goodscents_substantivity.json")
155
+
156
+ # Merge with Poucher tiers (Poucher takes priority)
157
+ merged_tiers = dict(cas_to_tier_gs)
158
+ for cas, tier in poucher_tiers.items():
159
+ if cas not in merged_tiers:
160
+ merged_tiers[cas] = tier
161
+ # Poucher is ground truth - override
162
+ else:
163
+ merged_tiers[cas] = tier
164
+
165
+ with open("data/perfumer_tier_lookup.json", "w") as f:
166
+ json.dump({k: v for k, v in sorted(merged_tiers.items())}, f, indent=2)
167
+ print(f"Merged tier lookup: {len(merged_tiers)} CAS")
168
+
169
+ merged_dist = defaultdict(int)
170
+ for t in merged_tiers.values():
171
+ merged_dist[t] += 1
172
+ for t in ["top", "mid", "base"]:
173
+ print(f" {t}: {merged_dist[t]}")
174
+
175
+ # Coverage with merged
176
+ merged_matched = dataset_cas.intersection(set(merged_tiers.keys()))
177
+ print(f"Dataset coverage with merged: {len(merged_matched)}/{len(dataset_cas)} ({100*len(merged_matched)/len(dataset_cas):.1f}%)")
scripts/optimize_subst_thresholds.py ADDED
@@ -0,0 +1,167 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """Optimize substantivity thresholds against Poucher ground truth,
3
+ then evaluate dataset coverage and agreement."""
4
+ import json
5
+ import numpy as np
6
+ from collections import defaultdict
7
+
8
+ # Load true Poucher ground truth (not the merged file)
9
+ with open("data/poucher_tier_lookup_expanded.json") as f:
10
+ poucher_data = json.load(f)
11
+ poucher_tiers = poucher_data["cas_to_tier"]
12
+
13
+ # Load GoodScents substantivity data
14
+ with open("data/goodscents_substantivity.json") as f:
15
+ gs_data = json.load(f)
16
+ cas_to_subst = gs_data["cas_to_substantivity_hours"]
17
+
18
+ # Get overlap: CAS with both Poucher tier and GoodScents substantivity
19
+ overlap_cas = set(poucher_tiers.keys()).intersection(set(cas_to_subst.keys()))
20
+ print(f"Overlap (Poucher tier + GS substantivity): {len(overlap_cas)} CAS")
21
+
22
+ # Show the actual substantivity distributions by Poucher tier
23
+ tier_subst = defaultdict(list)
24
+ for cas in overlap_cas:
25
+ tier = poucher_tiers[cas]
26
+ tier_subst[tier].append(cas_to_subst[cas])
27
+
28
+ print(f"\nSubstantivity by Poucher tier:")
29
+ for tier in ["top", "mid", "base"]:
30
+ vals = np.array(tier_subst[tier])
31
+ if len(vals) > 0:
32
+ print(f" {tier:5s}: n={len(vals):3d}, median={np.median(vals):6.0f}h, "
33
+ f"P25={np.percentile(vals,25):6.0f}h, P75={np.percentile(vals,75):6.0f}h, "
34
+ f"min={vals.min():.0f}, max={vals.max():.0f}")
35
+
36
+ # --- Optimize thresholds via grid search ---
37
+ # We want to find (t1, t2) such that:
38
+ # subst < t1 → top
39
+ # t1 <= subst < t2 → mid
40
+ # subst >= t2 → base
41
+ # that maximizes Cohen's kappa against Poucher tiers
42
+
43
+ from sklearn.metrics import cohen_kappa_score
44
+
45
+ best_kappa = -2
46
+ best_t1 = None
47
+ best_t2 = None
48
+
49
+ # Use the observed range
50
+ all_subst = sorted(set(cas_to_subst[c] for c in overlap_cas))
51
+
52
+ # Grid search over threshold pairs
53
+ for t1 in np.arange(1, 500, 1):
54
+ for t2 in np.arange(t1 + 1, 900, 5):
55
+ pred = []
56
+ true = []
57
+ for cas in overlap_cas:
58
+ s = cas_to_subst[cas]
59
+ if s < t1:
60
+ pred_tier = "top"
61
+ elif s < t2:
62
+ pred_tier = "mid"
63
+ else:
64
+ pred_tier = "base"
65
+ pred.append(pred_tier)
66
+ true.append(poucher_tiers[cas])
67
+
68
+ kappa = cohen_kappa_score(true, pred)
69
+ if kappa > best_kappa:
70
+ best_kappa = kappa
71
+ best_t1 = t1
72
+ best_t2 = t2
73
+
74
+ print(f"\n=== Optimal thresholds ===")
75
+ print(f" Top: < {best_t1:.0f}h")
76
+ print(f" Mid: {best_t1:.0f}h - {best_t2:.0f}h")
77
+ print(f" Base: >= {best_t2:.0f}h")
78
+ print(f" Best kappa: {best_kappa:.3f}")
79
+
80
+ # Show confusion matrix at optimal thresholds
81
+ tier_to_idx = {"top": 0, "mid": 1, "base": 2}
82
+ matrix = np.zeros((3, 3), dtype=int)
83
+ for cas in overlap_cas:
84
+ s = cas_to_subst[cas]
85
+ if s < best_t1:
86
+ pred = "top"
87
+ elif s < best_t2:
88
+ pred = "mid"
89
+ else:
90
+ pred = "base"
91
+ true = poucher_tiers[cas]
92
+ matrix[tier_to_idx[true], tier_to_idx[pred]] += 1
93
+
94
+ print(f"\nConfusion at optimal thresholds (rows=Poucher, cols=GS, n={len(overlap_cas)}):")
95
+ print(f" {'':12s} {'GS-top':>10s} {'GS-mid':>10s} {'GS-base':>10s} {'Total':>10s}")
96
+ for i, tier in enumerate(["top", "mid", "base"]):
97
+ row = matrix[i]
98
+ print(f" Poucher-{tier:5s} {row[0]:>10d} {row[1]:>10d} {row[2]:>10d} {sum(row):>10d}")
99
+
100
+ # --- Apply optimal thresholds to full dataset ---
101
+ cas_to_tier_optimal = {}
102
+ for cas, subst in cas_to_subst.items():
103
+ if subst < best_t1:
104
+ cas_to_tier_optimal[cas] = "top"
105
+ elif subst < best_t2:
106
+ cas_to_tier_optimal[cas] = "mid"
107
+ else:
108
+ cas_to_tier_optimal[cas] = "base"
109
+
110
+ # --- Build merged lookup ---
111
+ # Poucher is ground truth, override GS tiers where both exist
112
+ merged_tiers = dict(cas_to_tier_optimal)
113
+ for cas, tier in poucher_tiers.items():
114
+ merged_tiers[cas] = tier # Always prefer Poucher
115
+
116
+ # Dataset coverage
117
+ with open("data/empirical_dataset_v8.jsonl") as f:
118
+ records = [json.loads(l) for l in f]
119
+
120
+ dataset_cas = set()
121
+ for r in records:
122
+ if r.get("is_control"):
123
+ continue
124
+ for comp in r.get("formula", []):
125
+ cas = comp.get("cas", "")
126
+ if cas:
127
+ dataset_cas.add(cas)
128
+
129
+ matched = dataset_cas.intersection(set(merged_tiers.keys()))
130
+ print(f"\n=== Final Coverage ===")
131
+ print(f"Dataset CAS: {len(dataset_cas)}")
132
+ print(f"With tier labels: {len(matched)} ({100*len(matched)/len(dataset_cas):.1f}%)")
133
+
134
+ tier_dist = defaultdict(int)
135
+ for cas in matched:
136
+ tier_dist[merged_tiers[cas]] += 1
137
+ for t in ["top", "mid", "base"]:
138
+ print(f" {t}: {tier_dist[t]} ({100*tier_dist[t]/len(matched):.1f}%)")
139
+
140
+ # Save the raw substantivity data (no tier mapping here — see optimize_subst_thresholds.py)
141
+ output = {
142
+ "cas_to_substantivity_hours": {k: round(v, 2) for k, v in sorted(cas_to_subst.items())},
143
+ "total_cas": len(cas_to_subst),
144
+ }
145
+ with open("data/goodscents_substantivity.json", "w") as f:
146
+ json.dump(output, f, indent=2)
147
+ print(f"\nSaved to data/goodscents_substantivity.json")
148
+
149
+ # Also produce a transient diagnostic tier mapping using Poucher-optimized thresholds
150
+ # (these are the defaults used before optimization; they are NOT final)
151
+ cas_to_tier_gs = {}
152
+ for cas, subst in cas_to_subst.items():
153
+ if subst < 15:
154
+ cas_to_tier_gs[cas] = "top"
155
+ elif subst < 241:
156
+ cas_to_tier_gs[cas] = "mid"
157
+ else:
158
+ cas_to_tier_gs[cas] = "base"
159
+
160
+ # Merge with Poucher tiers (Poucher is ground truth, takes priority)
161
+ merged_tiers = dict(cas_to_tier_gs)
162
+ for cas, tier in poucher_tiers.items():
163
+ merged_tiers[cas] = tier
164
+
165
+ with open("data/perfumer_tier_lookup.json", "w") as f:
166
+ json.dump({k: v for k, v in sorted(merged_tiers.items())}, f, indent=2)
167
+ print(f"Merged tier lookup: {len(merged_tiers)} CAS")