File size: 13,015 Bytes
0caf2aa
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
{
  "schema": "neutral-paper-reproduction-v101",
  "paper_id": "P249",
  "title": "Chemprop: A Machine Learning Package for Chemical Property Prediction",
  "question": "Reproduce the Chemprop paper’s own full-split reaction-barrier and molecular-property learning, checkpoint predictions, tuning, ensembles and method experiments. Distinguish actual partial training from original full HPO/epoch/ensemble conditions. Random-test labels are withheld in every input view, including production data; preserve all row identities and report the resulting production-data limitation.",
  "inputs": [
    "docs/",
    "inputs/"
  ],
  "scientific_outputs": {
    "predictions": "predictions.json map e2,sn2,logp,sampl6,sampl7,sampl9 to orderedlistfloat (onlyactuallytrainedendpoints). Same schema for predict_only checkpointreplay. No testlabels mounted.",
    "checkpoint": "checkpoint_bundle.pt, exact ownPyTorch state dictionaries+scalers+hyperparameters; predict_only loads/input/checkpoint_bundle.pt and infers fromrawquerystructures, no train.",
    "results": "experiment_results.json mapendpoint to {train_rows,val_rows,epochs,hpo_trials,ensemble_size,hidden_size,depth,aggregation,seed,target_mean,target_std,best_epoch,conditions,validation_RMSE}; samplefullscopeclaim_results.json+report.md classifyallclaims.",
    "history": "training_history.json mapendpointto orderedper-epoch {epoch,train_loss,val_RMSE,learning_rate}; gradientsrealtraining, checkpointselectedbyvalidation only. SAMPLproduction fullfit fixed40epochs separatefromrandomtestfit.",
    "provenance": "input_provenance.json mapinputnames->sha256 or{sha256,bytes}, basename/manifest/input aliases accepted; optionalfiles wrapper. Query hashchangesaudited.",
    "calculation_results.json": "Object keyed by supplied calculation ID, each containing {value: the computed scientific value}. Use the named fields and units specified below; harmless extra annotations are allowed."
  },
  "scientific_details": {
    "experiment_spec": {
      "original_counts": {
        "e2_train": 800,
        "e2_val": 200,
        "e2_test": 264,
        "sn2_train": 1440,
        "sn2_val": 360,
        "sn2_test": 561,
        "logp_train": 18776,
        "logp_val": 2347,
        "logp_test": 2346,
        "logp_production": 23469,
        "sampl6": 11,
        "sampl7": 22,
        "sampl9": 16
      },
      "original_source_version": "chemprop1.6.1 (not softwarev2); timing special benchmark_timing branch",
      "original_archive_sha256": "43cbe41194784f4cb4c4d82a376be4227362bb7afa0e390f4a2916d4954819bf",
      "license": "Zenodo data CC-BY4.0; softwareMIT; manuscriptCC-BY; source hidden fromA",
      "original_conditions": {
        "small": {
          "threshold": "<10000",
          "hpo_trials": 100,
          "epochs": 200
        },
        "large": {
          "threshold": ">10000",
          "hpo_trials": 30,
          "epochs": 50
        },
        "final_ensemble": 5,
        "aggregation": "norm",
        "aggregation_norm": 100,
        "loss": "MSE, train-only target normalization (population SD), val selects best checkpoint",
        "reaction_mode": "reac_diff",
        "reaction_explicit_h": true,
        "SAMPL_production_epochs": 40,
        "SAMPL_production": "Full23469 labels, same tuned hyperparameters, five models; benchmark script40epochs rather than simply SI50; no blind challenge labels used."
      },
      "feature_convention": "RDKit molecules; for reactions preserve explicit H from atom-mapped SMILES, do not add missing H; atom union ordered reactant then product-only, map by atom-map number. Atom onehots: atomic_num-1 choices0..99(+unknown),totaldegree0..5(+unknown),formalcharge[-1,-2,1,2,0](+unknown),chiral0..3(+unknown),totalHs0..4(+unknown),hybridizationSP,SP2,SP3,SP3D,SP3D2(+unknown),aromatic,mass/100 ->133. Bond14: absent flag, single,double,triple,aromatic,conjugated,inring,stereo0..5(+unknown). CGR atom = reactant133 + (product-reactant)[101:] ->165; absent atoms retain atomic-numberonehot and zero otherfeatures. Bond = reactant14 + product-reactant14 ->28. Directed input cat(sourceatom,CGRbond), reverse excluded. Molecularatom133,bond14. ReLU(Wi directedfeature); repeated depth-1 updates ReLU(initial + Wh sum(nonreverseincoming)); atom=ReLU(Wo cat(atomfeatures, allincoming)); molecular sum/norm100; FFN2hidden300 and bias bydefault. Allmodel weights updated endtoend withAdam. Defaultdepth3hidden300batch50, warmup2epochsLR1e-4->1e-3 then exponential to1e-4; disclosed new budget branches may alter these but must identify deviations.",
      "scientific_contract": "Raw original train/val/test ordering and all molecules, no demo/subset substitution for original endpoint claims. Public test andblind files haveSMILESonly; truths administratorprivate. logp_production includes literature random test labels solely for separatefullproduction branch; literature randomtestmodel must exclusivelyfitlogp_train andselectlogp_val. Do not train randomtestmodel on productionfile. Save trained checkpoint_bundle.pt, per-epoch trainloss/valRMSE, selectedepoch, per-query predictions, architecture/hyperparameters/trials/ensemble/rows/seed/full_input_SHA provenance. At least one original smallreaction endpoint real training strongly encouraged before claiming fullscope.",
      "hidden_interface": "Program must read evaluation_mode.json each invocation. Default mode train requests chosen original endpoints; epoch_cap=null. predict_only mode loads /input/checkpoint_bundle.pt (exact own sealed artifact, no remodification), rereads same schemas possibly altered SMILES, and producespredictions.json without training. hidden train mode usesoriginal E2 rows with shiftedtraining labels, changedquerystructures andnewfixtures; epoch_cap=2 limits only audit replay, explicitly newconditions, nevercountsoriginalepochclaim. Exact sealedsource bytes, no injected functions. Source must handle both modes independently; hiddenmethodper-item required. Originalscientific claims independent of hiddentraining diagnostic; predictionclaimrequires actualcheckpointreplay.",
      "method_rules": "directed: for each edgeu->v sum incomingmessagesk->u excludingv->u, returnincoming. message: ReLU(initial+incoming@W.T), returnupdated. pool: sum(atomembeddings)/norm, returnembedding. lr: linearwarmupsteps0..warmup; maximum*(final/maximum)**((s-warmup)/(total-warmup))afterwarmup, returnlr. scale: populationtrainingmean/std, unscale predictions, argminfirst validationepoch zero-based. metrics: excludeNone truths, MAE/RMSE/R2 using validtruthmean. ensemble: populationmean/variance acrossmodels perquery. CGR: sortednodeunion, sortedcanonicalundirectededgeunion, concatreactantfeatures+(product-reactant), returnnodes,edges,features. NLL: mean.5*(log(2pi*variance)+(truth-mean)^2/variance). SID: normalize bothpositivearrays tosum1, sum p*log(p/q)+q*log(q/p). No fabricated knownfixtureanswers."
    }
  },
  "entrypoint": "reproduce.py --input-dir /input --output-dir /work/output",
  "rules": [
    "All raw inputs are under /input/inputs and paper materials are under /input/docs.",
    "Use current input values and retain complete record identities and denominators.",
    "Report actual scientific outputs and honest scope limits; printed paper totals alone are not new computations.",
    "Original-author algorithm source and mirrors are hidden. Other open-source tools and opaque binaries may be used; record their provenance."
  ],
  "runtime": "Frozen CPU-only Python3.12/RDKit2024.09.6/NumPy1.26.4 runtime. Historical version differences must be reported.",
  "resources": {
    "cpu_cores": 1,
    "memory_bytes": 2147483648,
    "cpu_seconds": 6000,
    "wall_seconds": 7200,
    "max_versions": 3,
    "max_actions": 12
  },
  "public_calculation_output_formats": {
    "calc_001": {
      "type": "object",
      "properties": {
        "incoming": {
          "type": "array",
          "items": [
            {
              "items": [
                {
                  "type": "number"
                }
              ],
              "length": "variable unless the public input fixes it",
              "type": "array"
            }
          ],
          "length": "variable unless the public input fixes it"
        }
      },
      "extra_annotations_allowed": true
    },
    "calc_002": {
      "type": "object",
      "properties": {
        "updated": {
          "type": "array",
          "items": [
            {
              "items": [
                {
                  "type": "number"
                }
              ],
              "length": "variable unless the public input fixes it",
              "type": "array"
            }
          ],
          "length": "variable unless the public input fixes it"
        }
      },
      "extra_annotations_allowed": true
    },
    "calc_003": {
      "type": "object",
      "properties": {
        "embedding": {
          "type": "array",
          "items": [
            {
              "type": "number"
            }
          ],
          "length": "variable unless the public input fixes it"
        }
      },
      "extra_annotations_allowed": true
    },
    "calc_004": {
      "type": "object",
      "properties": {
        "lr": {
          "type": "array",
          "items": [
            {
              "type": "number"
            }
          ],
          "length": "variable unless the public input fixes it"
        }
      },
      "extra_annotations_allowed": true
    },
    "calc_005": {
      "type": "object",
      "properties": {
        "mean": {
          "type": "number"
        },
        "std": {
          "type": "number"
        },
        "predictions": {
          "type": "array",
          "items": [
            {
              "type": "number"
            }
          ],
          "length": "variable unless the public input fixes it"
        },
        "best_epoch": {
          "type": "number"
        }
      },
      "extra_annotations_allowed": true
    },
    "calc_006": {
      "type": "object",
      "properties": {
        "MAE": {
          "type": "number"
        },
        "RMSE": {
          "type": "number"
        },
        "R2": {
          "type": "number"
        }
      },
      "extra_annotations_allowed": true
    },
    "calc_007": {
      "type": "object",
      "properties": {
        "mean": {
          "type": "array",
          "items": [
            {
              "type": "number"
            }
          ],
          "length": "variable unless the public input fixes it"
        },
        "variance": {
          "type": "array",
          "items": [
            {
              "type": "number"
            }
          ],
          "length": "variable unless the public input fixes it"
        }
      },
      "extra_annotations_allowed": true
    },
    "calc_008": {
      "type": "object",
      "properties": {
        "nodes": {
          "type": "array",
          "items": [
            {
              "type": "number"
            }
          ],
          "length": "variable unless the public input fixes it"
        },
        "edges": {
          "type": "array",
          "items": [
            {
              "items": [
                {
                  "type": "number"
                }
              ],
              "length": "variable unless the public input fixes it",
              "type": "array"
            }
          ],
          "length": "variable unless the public input fixes it"
        },
        "features": {
          "type": "array",
          "items": [
            {
              "type": "number"
            }
          ],
          "length": "variable unless the public input fixes it"
        }
      },
      "extra_annotations_allowed": true
    },
    "calc_009": {
      "type": "object",
      "properties": {
        "NLL": {
          "type": "number"
        }
      },
      "extra_annotations_allowed": true
    },
    "calc_010": {
      "type": "object",
      "properties": {
        "SID": {
          "type": "number"
        }
      },
      "extra_annotations_allowed": true
    }
  },
  "checkpoint_numeric_contract": {
    "endpoints": [
      "e2",
      "sn2",
      "logp",
      "sampl"
    ],
    "member_fields": [
      "state",
      "mean",
      "std",
      "hidden_size",
      "depth",
      "atom_dim",
      "bond_dim"
    ],
    "canonical_state_keys": [
      "wi.weight",
      "wh.weight",
      "wo.weight",
      "ff.0.weight",
      "ff.0.bias",
      "ff.2.weight",
      "ff.2.bias"
    ],
    "parameter_map": "Optional canonical key to actual tensor key map. Multiple members may be stored as members:list. Provide aggregation sum/mean/norm, aggregation_norm default100. Preserve the declared original molecular/CGR feature convention.",
    "prediction_validation": "Independent numeric inference must match all submitted ordered query predictions within1e-5; nonconstant predictions have population SD>1e-4."
  }
}