bambezius commited on
Commit
8cdfa20
·
verified ·
1 Parent(s): e4178d1

Upload tgn checkpoint 20260430_135010

Browse files
Files changed (5) hide show
  1. README.md +44 -0
  2. config.json +13 -0
  3. metrics.json +15 -0
  4. model_info.json +6 -0
  5. model_params.joblib +3 -0
README.md ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # tgn
2
+
3
+ JAX checkpoint for the `Tgn` temporal graph model with separate intention and outcome heads.
4
+
5
+ ## Checkpoint
6
+
7
+ - Model class: `Tgn`
8
+ - Framework: `jax`
9
+ - Run timestamp: `20260430_135010`
10
+ - Parameters: `model_params.joblib`
11
+ - Hyperparameters: `config.json`
12
+ - Metrics: `metrics.json`
13
+
14
+ ## Validation Metrics
15
+
16
+ ```json
17
+ {
18
+ "val/loss": 1.1337319612503052,
19
+ "val/intention_top1_accuracy": 0.6611314415931702,
20
+ "val/intention_top2_accuracy": 0.8483576774597168,
21
+ "val/intention_top3_accuracy": 0.9177007675170898,
22
+ "val/intention_mrr": 0.7940667867660522,
23
+ "val/outcome_top1_accuracy": 0.5961679220199585,
24
+ "val/outcome_top2_accuracy": 0.7636861801147461,
25
+ "val/outcome_top3_accuracy": 0.8319343328475952,
26
+ "val/outcome_mrr": 0.7304578423500061
27
+ }
28
+ ```
29
+
30
+ ## Loading
31
+
32
+ ```python
33
+ import json
34
+ from pathlib import Path
35
+
36
+ import joblib
37
+
38
+ checkpoint_path = Path("path/to/checkpoint")
39
+
40
+ with open(checkpoint_path / "config.json") as f:
41
+ config = json.load(f)
42
+
43
+ params = joblib.load(checkpoint_path / "model_params.joblib")
44
+ ```
config.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "prev_hidden_dims": 128,
3
+ "curr_hidden_dims": 512,
4
+ "time_embedding_dims": 8,
5
+ "lstm_embedding_dims": 128,
6
+ "dropout_rate": 0.2,
7
+ "num_layers": 4,
8
+ "num_heads": 4,
9
+ "batch_size": 8,
10
+ "learning_rate": "1e-4",
11
+ "weight_decay": "1e-4",
12
+ "grad_accum_steps": 16
13
+ }
metrics.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "misc/epoch": 73,
3
+ "misc/patience": 9,
4
+ "train/loss": 1.0968098640441895,
5
+ "val/loss": 1.1337319612503052,
6
+ "val/intention_top1_accuracy": 0.6611314415931702,
7
+ "val/intention_top2_accuracy": 0.8483576774597168,
8
+ "val/intention_top3_accuracy": 0.9177007675170898,
9
+ "val/intention_mrr": 0.7940667867660522,
10
+ "val/outcome_top1_accuracy": 0.5961679220199585,
11
+ "val/outcome_top2_accuracy": 0.7636861801147461,
12
+ "val/outcome_top3_accuracy": 0.8319343328475952,
13
+ "val/outcome_mrr": 0.7304578423500061,
14
+ "misc/grad": 9.830899238586426
15
+ }
model_info.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "model_class": "Tgn",
3
+ "framework": "jax",
4
+ "timestamp": "20260430_135010",
5
+ "model_name": "tgn"
6
+ }
model_params.joblib ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:08a648e5a33a6784645b8bb214f4ef240e3174ad8de9dba652e07d38a4713618
3
+ size 15387556