Upload README.md with huggingface_hub
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
|
| 14 |
## Capabilities
|
| 15 |
-
- **Causal Discovery**:
|
| 16 |
-
- **Effect Estimation**:
|
|
|
|
| 17 |
- **Root Cause Analysis**: 8-method ensemble (AERCA, ESD, ProRCA, GCM noise, ICC, Shapley, counterfactual, chain tracing)
|
| 18 |
|
| 19 |
-
##
|
| 20 |
-
- `models/temporal/final.pt` β
|
| 21 |
-
-
|
|
|
|
|
|
|
| 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.
|
|
|
|
| 33 |
```
|
| 34 |
|
| 35 |
-
##
|
| 36 |
-
|
|
|
|
|
|
|
|
|
|
| 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"
|