Update README.md
Browse files
README.md
CHANGED
|
@@ -28,58 +28,3 @@ It combines **Temporal Convolutional Networks (TCN)**, **Bidirectional LSTMs**,
|
|
| 28 |
- πΎ **Lightweight, Scalable Architecture** β works on CPU/GPU and deploys easily to Hugging Face Spaces or Streamlit
|
| 29 |
|
| 30 |
---
|
| 31 |
-
|
| 32 |
-
## ποΈ Project Structure
|
| 33 |
-
|
| 34 |
-
CHRONOGUARD/
|
| 35 |
-
β
|
| 36 |
-
βββ data/
|
| 37 |
-
β βββ synthetic_data.csv # demo dataset
|
| 38 |
-
β βββ heatmap_scores.png # anomaly attention map
|
| 39 |
-
β βββ heatmap_saliency.png # gradient-based saliency map
|
| 40 |
-
β
|
| 41 |
-
βββ models/
|
| 42 |
-
β βββ tcn_block.py # Temporal Convolutional Network module
|
| 43 |
-
β βββ attention_block.py # Attention mechanism
|
| 44 |
-
β βββ chronoguard_model.py # Full hybrid model definition
|
| 45 |
-
β
|
| 46 |
-
βββ train_chronoguard.py # training script
|
| 47 |
-
βββ inference_chronoguard.py # run inference & generate heatmaps
|
| 48 |
-
βββ utils.py # data loaders, metrics, helpers
|
| 49 |
-
βββ visualization.py # heatmap + explainability tools
|
| 50 |
-
β
|
| 51 |
-
βββ notebooks/
|
| 52 |
-
β βββ ChronoGuard_Demo.ipynb # ready-to-run Colab notebook
|
| 53 |
-
β
|
| 54 |
-
βββ requirements.txt
|
| 55 |
-
βββ README.md
|
| 56 |
-
βββ LICENSE
|
| 57 |
-
βββ config.yaml
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
---
|
| 61 |
-
|
| 62 |
-
## π Example Workflow
|
| 63 |
-
|
| 64 |
-
1. **Prepare Data**
|
| 65 |
-
```bash
|
| 66 |
-
python utils.py --generate-synthetic
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
2. **Train the Model**
|
| 70 |
-
```bash
|
| 71 |
-
python train_chronoguard.py --epochs 10 --batch_size 32
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
3. **Run Inference**
|
| 76 |
-
```bash
|
| 77 |
-
python inference_chronoguard.py --input data/synthetic_data.csv
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
4. **Visualize Heatmaps**
|
| 81 |
-
```bash
|
| 82 |
-
python visualization.py --input results/predictions.csv
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
Outputs are saved under data/heatmap_scores.png and data/heatmap_saliency.png.
|
|
|
|
| 28 |
- πΎ **Lightweight, Scalable Architecture** β works on CPU/GPU and deploys easily to Hugging Face Spaces or Streamlit
|
| 29 |
|
| 30 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|