yzhouchen001 commited on
Commit
f2d37e0
·
1 Parent(s): 53b1581

updated param file

Browse files
Files changed (1) hide show
  1. hparams.yaml → params.yaml +59 -80
hparams.yaml → params.yaml RENAMED
@@ -1,118 +1,97 @@
1
- lr: 2.881339661302105e-05
2
- weight_decay: 1.1586679936312845e-05
3
- log_only_loss_at_stages: []
4
- bootstrap_metrics: true
5
- df_test_path: /data/yzhouc01/FILIP-MS/experiments/20250913_optimized_filip-model/result.pkl
 
6
  job_key: ''
7
- run_name: optimized_filip-model
8
  run_details: ''
9
  project_name: ''
10
- wandb_entity_name: mass-spec-ml
11
  no_wandb: true
12
  seed: 0
13
  debug: false
14
- checkpoint_pth: null
 
 
 
 
 
15
  max_epochs: 2000
16
  accelerator: gpu
17
- devices:
18
- - 1
 
19
  log_every_n_steps: 250
20
  val_check_interval: 1.0
21
- candidates_pth: /r/hassounlab/spectra_data/msgym/molecules/MassSpecGym_retrieval_candidates_mass.json
22
- dataset_pth: /r/hassounlab/spectra_data/msgym/MassSpecGym.tsv
23
- subformula_dir_pth: /data/yzhouc01/MVP/data/MassSpecGym/data/subformulae_default
24
- split_pth: null
25
- fp_dir_pth: null
26
- cons_spec_dir_pth: null
27
- NL_spec_dir_pth: ''
28
- partial_checkpoint: ''
29
- batch_size: 64
30
- contr_temp: 0.022772534845886608
31
  early_stopping_patience: 300
 
32
  loss_strategy: static
33
- num_workers: 50
34
- spectra_view: SpecFormula
 
 
 
 
 
35
  formula_source: default
 
 
 
 
36
  max_mz: 1000
37
  bin_width: 1
38
  mask_peak_ratio: 0.0
 
39
  element_list:
40
- - H
41
- - C
42
- - O
43
- - 'N'
44
- - P
45
- - S
46
- - Cl
47
- - F
48
- - Br
49
- - I
50
- - B
51
- - As
52
- - Si
53
- - Se
54
  add_intensities: true
55
- mask_precursor: false
56
- molecule_view: MolGraph
57
  atom_feature: full
58
  bond_feature: full
59
- use_contr: false
60
- contr_wt: 1
61
- contr_wt_update: {}
62
- use_cons_spec: false
63
- cons_spec_wt: 3
64
- cons_spec_wt_update: {}
65
- cons_loss_type: l2
66
- pred_fp: false
67
- use_fp: false
68
- fp_loss_type: cosine
69
- fp_wt: 3
70
- fp_wt_update: {}
71
- fp_size: 1024
72
- fp_radius: 5
73
- fp_dropout: 0.4
74
- aug_cands: false
75
- aug_cands_wt: 0.1
76
- aug_cands_update: {}
77
- aug_cands_size: 3
78
- use_NL: false
79
  task: retrieval
80
  spec_enc: Transformer_Formula
81
  mol_enc: GNN
82
  model: filipContrastive
83
  contr_views:
84
- - - spec_enc
85
- - mol_enc
86
  final_embedding_dim: 512
87
  fc_dropout: 0.4
88
- hidden_dims:
89
- - 64
90
- - 128
91
  formula_dropout: 0.2
92
- formula_dims:
93
- - 512
94
- - 256
95
- - 512
96
  cross_attn_heads: 2
97
  use_cls: false
98
  peak_dropout: 0.414425691950033
99
  formula_attn_heads: 4
100
  formula_transformer_layers: 2
101
- attn_heads:
102
- - 12
103
- - 12
104
- - 12
105
- gnn_channels:
106
- - 64
107
- - 128
108
- - 512
109
  gnn_type: gcn
110
  num_gnn_layers: 3
111
  gnn_hidden_dim: 512
112
  gnn_dropout: 0.23234950970370824
113
- experiment_dir: /data/yzhouc01/FILIP-MS/experiments/20250913_optimized_filip-model
114
- at_ks:
115
- - 1
116
- - 5
117
- - 20
118
  myopic_mces_kwargs: null
 
 
 
 
1
+ # FLARE — FILIP contrastive retrieval (SpecFormula + GNN).
2
+ # Paths below are relative to the repository root unless absolute.
3
+ # Override file location: FLARE_PARAMS=/path/to/custom.yaml
4
+
5
+ # --- Run / logging ---
6
+ run_name: flare_filip
7
  job_key: ''
 
8
  run_details: ''
9
  project_name: ''
10
+ wandb_entity_name: ''
11
  no_wandb: true
12
  seed: 0
13
  debug: false
14
+ bootstrap_metrics: true
15
+ log_only_loss_at_stages: []
16
+
17
+ # --- Training ---
18
+ lr: 2.881339661302105e-05
19
+ weight_decay: 1.1586679936312845e-05
20
  max_epochs: 2000
21
  accelerator: gpu
22
+ devices: [1]
23
+ batch_size: 64
24
+ num_workers: 50
25
  log_every_n_steps: 250
26
  val_check_interval: 1.0
 
 
 
 
 
 
 
 
 
 
27
  early_stopping_patience: 300
28
+ contr_temp: 0.022772534845886608
29
  loss_strategy: static
30
+ checkpoint_pth: null
31
+
32
+ # --- Data (set to your local copies) ---
33
+ dataset_pth: data/MassSpecGym.tsv
34
+ candidates_pth: data/MassSpecGym_retrieval_candidates_mass.json
35
+ subformula_dir_pth: data/subformulae_default
36
+ split_pth: null
37
  formula_source: default
38
+
39
+ # --- Views / featurizers ---
40
+ spectra_view: SpecFormula
41
+ molecule_view: MolGraph
42
  max_mz: 1000
43
  bin_width: 1
44
  mask_peak_ratio: 0.0
45
+ mask_precursor: false
46
  element_list:
47
+ - H
48
+ - C
49
+ - O
50
+ - N
51
+ - P
52
+ - S
53
+ - Cl
54
+ - F
55
+ - Br
56
+ - I
57
+ - B
58
+ - As
59
+ - Si
60
+ - Se
61
  add_intensities: true
 
 
62
  atom_feature: full
63
  bond_feature: full
64
+
65
+ # --- Task & model ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
66
  task: retrieval
67
  spec_enc: Transformer_Formula
68
  mol_enc: GNN
69
  model: filipContrastive
70
  contr_views:
71
+ - [spec_enc, mol_enc]
72
+
73
  final_embedding_dim: 512
74
  fc_dropout: 0.4
75
+ hidden_dims: [64, 128]
76
+
 
77
  formula_dropout: 0.2
78
+ formula_dims: [512, 256, 512]
 
 
 
79
  cross_attn_heads: 2
80
  use_cls: false
81
  peak_dropout: 0.414425691950033
82
  formula_attn_heads: 4
83
  formula_transformer_layers: 2
84
+ attn_heads: [12, 12, 12]
85
+
86
+ gnn_channels: [64, 128, 512]
 
 
 
 
 
87
  gnn_type: gcn
88
  num_gnn_layers: 3
89
  gnn_hidden_dim: 512
90
  gnn_dropout: 0.23234950970370824
91
+
92
+ # --- Evaluation (retrieval base class) ---
93
+ at_ks: [1, 5, 20]
 
 
94
  myopic_mces_kwargs: null
95
+
96
+ # --- Outputs (optional; train/test override as needed) ---
97
+ df_test_path: ''