Add AIMSNeXtNet baseline model
Browse files- config.json +117 -0
- model.safetensors +3 -0
config.json
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architecture": "AIMSNeXtNet",
|
| 3 |
+
"ml": {
|
| 4 |
+
"embedding": {
|
| 5 |
+
"kind": "aims",
|
| 6 |
+
"embedding_type": "AIMSMolEmbedding",
|
| 7 |
+
"channel_first": null,
|
| 8 |
+
"max_len": null,
|
| 9 |
+
"min_charge": null,
|
| 10 |
+
"max_charge": null,
|
| 11 |
+
"embeddings": [
|
| 12 |
+
"aims_mol"
|
| 13 |
+
],
|
| 14 |
+
"nce_bins": null,
|
| 15 |
+
"ev_range": null,
|
| 16 |
+
"child_ordering": "canonical",
|
| 17 |
+
"ring_bond_weight": 0.5,
|
| 18 |
+
"peptide": {
|
| 19 |
+
"mods": null
|
| 20 |
+
},
|
| 21 |
+
"max_atoms": 64,
|
| 22 |
+
"bfs_depth": 24,
|
| 23 |
+
"bfs_width": 16,
|
| 24 |
+
"rw_steps": 6,
|
| 25 |
+
"collision_energy_scale": 100.0,
|
| 26 |
+
"collision_energy_default": 70.0,
|
| 27 |
+
"include_atomic_mass": true,
|
| 28 |
+
"enhanced_embedding": true,
|
| 29 |
+
"max_rings": 12,
|
| 30 |
+
"max_neighbors": 4,
|
| 31 |
+
"use_non_backtracking_rw": true,
|
| 32 |
+
"use_isotope_distribution": true,
|
| 33 |
+
"use_reduced_elements": true
|
| 34 |
+
},
|
| 35 |
+
"model": {
|
| 36 |
+
"kind": "aimsnext",
|
| 37 |
+
"model_type": "AIMSNeXtNet",
|
| 38 |
+
"channels": 1024,
|
| 39 |
+
"groups": 32,
|
| 40 |
+
"num_resnext_blocks": 12,
|
| 41 |
+
"num_grouped_convs": 3,
|
| 42 |
+
"mlp_hidden": 2048,
|
| 43 |
+
"dropout": 0.2,
|
| 44 |
+
"mlp_wider": false,
|
| 45 |
+
"output_channels": 1,
|
| 46 |
+
"use_backbone_attention": true,
|
| 47 |
+
"use_backbone_skip": true,
|
| 48 |
+
"num_attn_heads": 8,
|
| 49 |
+
"se_reduction": 16,
|
| 50 |
+
"drop_path_rate": 0.1,
|
| 51 |
+
"num_experts": 8,
|
| 52 |
+
"deeper_backbone": false
|
| 53 |
+
},
|
| 54 |
+
"loss": {
|
| 55 |
+
"loss_function": "SpectrumCosineLoss",
|
| 56 |
+
"sqrt_intensity": true,
|
| 57 |
+
"region_weight_diagnostic": 1.5,
|
| 58 |
+
"region_weight_high_mz": 2.0,
|
| 59 |
+
"heteroscedastic": false,
|
| 60 |
+
"mz_weighted_loss": false
|
| 61 |
+
},
|
| 62 |
+
"optimizer": {
|
| 63 |
+
"optimizer_function": "Adam",
|
| 64 |
+
"lr": 0.0001
|
| 65 |
+
},
|
| 66 |
+
"bayesian_network": {
|
| 67 |
+
"bayes": false,
|
| 68 |
+
"sample_nbr": 3
|
| 69 |
+
},
|
| 70 |
+
"sampler": {
|
| 71 |
+
"sampler_type": null,
|
| 72 |
+
"max_length": 40,
|
| 73 |
+
"min_length": 10,
|
| 74 |
+
"scale": 1.0,
|
| 75 |
+
"a": 1.0,
|
| 76 |
+
"b": 0.1,
|
| 77 |
+
"c": 0.9,
|
| 78 |
+
"d": 5.0,
|
| 79 |
+
"min_prob": 0.1,
|
| 80 |
+
"max_prob": 1.0,
|
| 81 |
+
"weighted_by_chemistry": false,
|
| 82 |
+
"phosphorus_weight": 3.0,
|
| 83 |
+
"sulfone_weight": 2.0,
|
| 84 |
+
"azo_weight": 2.5,
|
| 85 |
+
"large_mol_weight": 1.5,
|
| 86 |
+
"large_mol_threshold": 30
|
| 87 |
+
},
|
| 88 |
+
"batch_size": 64,
|
| 89 |
+
"shuffle": true,
|
| 90 |
+
"pin_memory": true,
|
| 91 |
+
"output_column": "spectrum",
|
| 92 |
+
"max_epochs": 100,
|
| 93 |
+
"limit_train_batches": 1.0,
|
| 94 |
+
"limit_val_batches": 1.0,
|
| 95 |
+
"gradient_clip_val": null,
|
| 96 |
+
"precision": 32,
|
| 97 |
+
"float32_matmul_precision": "high",
|
| 98 |
+
"transfer_learning": false,
|
| 99 |
+
"metrics": [
|
| 100 |
+
"SpectrumCosineMetric",
|
| 101 |
+
"PoorPred",
|
| 102 |
+
"MediocrePred",
|
| 103 |
+
"OkPred"
|
| 104 |
+
],
|
| 105 |
+
"valid_metrics": null,
|
| 106 |
+
"train_metrics": null
|
| 107 |
+
},
|
| 108 |
+
"ms": {
|
| 109 |
+
"kind": "eims",
|
| 110 |
+
"bin_size": 1.0,
|
| 111 |
+
"down_shift": 0.5,
|
| 112 |
+
"max_mz": 1024.0,
|
| 113 |
+
"take_max": false,
|
| 114 |
+
"take_sqrt": false,
|
| 115 |
+
"normalization": null
|
| 116 |
+
}
|
| 117 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6333c9e0a2071ab8686a6edca8166ae0aecb337353f0a47b68340f34e6164950
|
| 3 |
+
size 933659456
|