mrshravan commited on
Commit
d580ab2
Β·
verified Β·
1 Parent(s): 68bcc6c

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +26 -11
README.md CHANGED
@@ -4,21 +4,32 @@ tags:
4
  - time-series
5
  - foundation-model
6
  - temporal-causal
 
7
  license: mit
8
  ---
9
 
10
  # TCPFN β€” Temporal Causal Prior-Fitted Networks
11
 
12
- Zero-shot causal inference foundation model for temporal and industrial time series.
 
 
 
 
 
 
 
13
 
14
  ## Capabilities
15
- - **Causal Discovery**: AUROC 0.903 on Tennessee Eastman (zero-shot)
16
- - **Effect Estimation**: Temporal CATE trajectories
 
17
  - **Root Cause Analysis**: 8-method ensemble (AERCA, ESD, ProRCA, GCM noise, ICC, Shapley, counterfactual, chain tracing)
18
 
19
- ## Models
20
- - `models/temporal/final.pt` β€” Main model (257 MB, 200K steps)
21
- - `models/discovery/final.pt` β€” Discovery model (0.9 MB, 100K steps)
 
 
22
 
23
  ## Usage
24
  ```python
@@ -28,12 +39,16 @@ analyzer = TemporalCausalAnalyzer(
28
  temporal_model="models/temporal/final.pt",
29
  )
30
  report = analyzer.run("sensor_data.csv")
31
- print(report.edges)
32
- print(report.recommendations)
 
33
  ```
34
 
35
- ## Benchmark Results
36
- See `benchmarks/discovery_results.json` for full results on 12 datasets.
 
 
 
37
 
38
  ## Paper
39
- Stalupula et al., "Temporal Causal Prior-Fitted Networks: Zero-Shot Causal Inference for Industrial Time Series"
 
4
  - time-series
5
  - foundation-model
6
  - temporal-causal
7
+ - causal-judgment
8
  license: mit
9
  ---
10
 
11
  # TCPFN β€” Temporal Causal Prior-Fitted Networks
12
 
13
+ A causal reasoning foundation model β€” predicts effects, judges trustworthiness, operates zero-shot.
14
+
15
+ ## 5 Novel Contributions
16
+ 1. **Temporal Token Design** β€” first PFN for temporal panel data
17
+ 2. **Causal Judgment Head** β€” null detection, regime classification, identifiability, confounding, mediation
18
+ 3. **Causal Regime Prior** β€” direct, confounded, mediated, feedback, IV, front-door
19
+ 4. **Self-Calibration** β€” auto-detects natural experiments in sensor data
20
+ 5. **End-to-End System** β€” discovery + estimation + judgment + RCA, all zero-shot
21
 
22
  ## Capabilities
23
+ - **Causal Discovery**: pairwise interventional CATE with judgment-aware edge scoring
24
+ - **Effect Estimation**: temporal CATE trajectories with distributional output
25
+ - **Causal Judgment**: null-effect detection (NullF1 up to 1.00), regime classification (4 classes, RegimeAcc up to 0.80)
26
  - **Root Cause Analysis**: 8-method ensemble (AERCA, ESD, ProRCA, GCM noise, ICC, Shapley, counterfactual, chain tracing)
27
 
28
+ ## Model
29
+ - `models/temporal/final.pt` β€” One model for everything (200K steps, curriculum-trained)
30
+ - Causal Judgment Head: 5 trained outputs (null prob, confounding, identifiability, mediation, regime)
31
+ - Training: mixed_prior (40% CausalTimePrior + 30% base + 30% CausalFM)
32
+ - Curriculum: Phase 1 CATE-only β†’ Phase 2 +Null β†’ Phase 3 Full judgment
33
 
34
  ## Usage
35
  ```python
 
39
  temporal_model="models/temporal/final.pt",
40
  )
41
  report = analyzer.run("sensor_data.csv")
42
+ print(report.edges) # causal graph
43
+ print(report.judgments) # null prob, regime, identifiability per edge
44
+ print(report.root_causes) # ranked root causes
45
  ```
46
 
47
+ ## Training Metrics (step 200K)
48
+ - EffectLoss: 2.98 | JudgmentLoss: 2.72 (bounded)
49
+ - NullDetectAcc: 1.00 | NullF1: 1.00 | NullAUROC: 1.00 | NullBrier: 0.02
50
+ - RegimeAcc: 0.70 | RegimeMacroF1: 0.47
51
+ - EffectRMSE: 0.077
52
 
53
  ## Paper
54
+ Stalupula et al., "Temporal Causal Prior-Fitted Networks: Zero-Shot Causal Inference and Judgment for Industrial Time Series"