优化6个类,现在ks降低到0.28,史称3.0版本

This commit is contained in:
2026-01-28 20:10:42 +08:00
parent 59697c0640
commit 39eede92f6
28 changed files with 3317 additions and 225 deletions

47
docs/architecture.md Normal file
View File

@@ -0,0 +1,47 @@
# Architecture Overview
## System Diagram (text)
```
+--------------------+
| Program Generator |
| (Type 1 setpoints) |
+---------+----------+
|
v
+-----------------------+
| Controller / Actuator |
| (Type 2/3 modules) |
+---------+-------------+
|
v
+----------------------------+
| Diffusion (Residuals) |
| - Continuous PVs |
| - Discrete mask diffusion |
+---------+------------------+
|
v
+-----------------------------+
| Post-processing |
| - Derived tags (Type 5) |
| - KS-only resample baseline |
+-----------------------------+
```
## Core Components
- **Stage1 Temporal GRU**: learns trend for continuous features.
- **Diffusion Backbone**: Transformer (default) or GRU; predicts residuals + discrete logits.
- **Post-hoc Calibration**: optional quantile calibration to align 1D CDFs.
- **KS-only Baseline**: Type1/2/3/5/6 empirical resampling for rapid KS reduction (diagnostic; may hurt joint realism).
## Feature-Type Split
1) **Type 1**: Setpoints/demands → program generator
2) **Type 2**: Controller outputs → small emulator / conditional head
3) **Type 3**: Actuators/valves → spikeandslab / dwell-time model
4) **Type 4**: Process PVs (multimodal/heavy tail) → diffusion with conditioning
5) **Type 5**: Derived tags → deterministic reconstruction (or empirical KS baseline)
6) **Type 6**: Auxiliary/vibration → narrow-band AR/SSM or empirical KS baseline
## Data Flow
- Input CSV → stats/vocab → normalized batches
- Trend GRU → residual diffusion → inverse transforms → export