Skip to content

Commit eaa321c

Browse files
Update train.py
1 parent 778d8d1 commit eaa321c

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

snn-dt/scripts/train.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,8 +400,8 @@ def handle_exception(exc_type, exc_value, exc_traceback):
400400
"snn": {
401401
"lif_tau": cfg_raw.get("snn", {}).get("lif_tau", 20.0),
402402
"surrogate_k": cfg_raw.get("snn", {}).get("surrogate_k", 25.0),
403-
"v_th": cfg_raw.get("snn", {}).get("v_th", 0.05),
404-
"current_scale": cfg_raw.get("snn", {}).get("current_scale", 5.0),
403+
"v_th": cfg_raw.get("snn", {}).get("v_th", 1.0),
404+
"current_scale": cfg_raw.get("snn", {}).get("current_scale", 0.2),
405405
"use_plasticity": cfg_raw.get("snn", {}).get("use_plasticity", False)
406406
},
407407
"iql": {
@@ -423,6 +423,9 @@ def handle_exception(exc_type, exc_value, exc_traceback):
423423
# Convert to AttrDict for easy access
424424
cfg = AttrDict(cfg)
425425

426+
if cfg.model.name == "snn_dt":
427+
logger.info(f"SNN Config: {cfg.snn}")
428+
426429
# Construct dataset path from env name, relative to project root
427430
cfg.dataset.path = str(project_root / f"data/{args.env}/dataset.npz")
428431

0 commit comments

Comments
 (0)