Skip to content

Commit

Permalink
Merge pull request #16 from joschkabirk/add-run-note
Browse files Browse the repository at this point in the history
Add run note
  • Loading branch information
ewencedr authored Aug 2, 2023
2 parents 138cb38 + 44483e2 commit 2533cb0
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
2 changes: 2 additions & 0 deletions configs/data/jetclass.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ num_workers: 32
pin_memory: False
val_fraction: 0.10
test_fraction: 0.30
normalize: True
normalize_sigma: 5
14 changes: 10 additions & 4 deletions configs/experiment/jetclass.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ defaults:

tags: ["flow_matching", "JetClass", "uncond"]

run_note: "This is a note"

seed: 12345

trainer:
min_epochs: 1
max_epochs: 2_000
max_epochs: 1_500
gradient_clip_val: 0.5

model:
Expand All @@ -29,9 +31,13 @@ model:
local_cond_dim: 0

data:
number_of_used_jets: 800_000
# preprocessing
number_of_used_jets: 1_000_000
use_custom_eta_centering: True # this means we are using eta_rel = eta_particle - eta_jet
remove_etadiff_tails: True # remove tracks with | eta_rel | > 1
normalize: True
normalize_sigma: 5
# conditioning
conditioning_pt: False
conditioning_eta: False
conditioning_mass: False
Expand All @@ -46,10 +52,10 @@ callbacks:
evaluate_ema_weights_instead: True
jetclass_eval:
every_n_epochs: 100 # evaluate every n epochs
additional_eval_epochs: [10, 30, 50, 75] # evaluate at these epochs as well
additional_eval_epochs: [1, 5, 10, 30, 50, 75] # evaluate at these epochs as well
num_jet_samples: 50_000 # jet samples to generate
jetclass_eval_test:
num_jet_samples: 60_000 # jet samples to generate
num_jet_samples: 200_000 # jet samples to generate

#early_stopping:
# monitor: "val/loss"
Expand Down
3 changes: 2 additions & 1 deletion configs/experiment/jetclass_dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ defaults:


tags: ["flow_matching", "JetClass", "uncond", "dev", "debug"]
run_note: "This is a note"

seed: 12345

Expand Down Expand Up @@ -49,7 +50,7 @@ callbacks:
evaluate_ema_weights_instead: True
jetclass_eval:
every_n_epochs: 5 # evaluate every n epochs
additional_eval_epochs: [1] # evaluate at these epochs as well
additional_eval_epochs: [] # evaluate at these epochs as well
num_jet_samples: 100 # jet samples to generate
jetclass_eval_test:
num_jet_samples: 6000 # jet samples to generate
Expand Down
5 changes: 2 additions & 3 deletions src/utils/utils.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import time
import warnings
from importlib.util import find_spec
from pathlib import Path
from typing import Any, Callable, Dict, List
from typing import Callable, List

import hydra
from omegaconf import DictConfig
Expand Down Expand Up @@ -166,6 +164,7 @@ def log_hyperparameters(object_dict: dict) -> None:
hparams["tags"] = cfg.get("tags")
hparams["ckpt_path"] = cfg.get("ckpt_path")
hparams["seed"] = cfg.get("seed")
hparams["run_note"] = cfg.get("run_note")

# send hparams to all loggers
for logger in trainer.loggers:
Expand Down

0 comments on commit 2533cb0

Please sign in to comment.