Skip to content

Xai feautures#9

Open
DanaDagher wants to merge 8 commits into
BNN-UPC:mainfrom
DanaDagher:xai-feautures
Open

Xai feautures#9
DanaDagher wants to merge 8 commits into
BNN-UPC:mainfrom
DanaDagher:xai-feautures

Conversation

@DanaDagher
Copy link
Copy Markdown

No description provided.

DAGHER and others added 8 commits May 12, 2026 09:42
- shap_explain.py: KernelExplainer wrapper for RouteNet-Fermi GNN
  - Perturbs 10 scalar path features per flow while keeping graph intact
  - Selects 20 low-delay + 20 high-delay flows from constant_bitrate test set
  - 256 SHAP perturbations per flow, median background reference point
- shap_plots/: 4 result plots
  - mean_shap_bar.png: global feature importance ranking
  - low_vs_high_shap.png: importance comparison across delay regimes
  - shap_summary_dot.png: beeswarm summary plot
  - shap_waterfall_worst.png: deep-dive on worst-case flow

Key finding: traffic and packets dominate (>0.18s SHAP each);
eq_lambda/avg_pkts_lambda matter more in high-delay regime (9x/5x ratio);
timing params (exp_max_factor, pkts_lambda_on, avg_t_off, avg_t_on, ar_a, sigma)
have zero importance for constant_bitrate -- candidates for masking in Step 5.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- step4_analysis.py: deep-dive on SHAP results
  - Feature importance table with % contribution
  - Direction analysis (positive/negative effect on delay)
  - Low vs high delay regime comparison
  - Masking recommendation: keep 4 / mask 6 features (60% reduction)
  - 2 new plots: scatter (SHAP vs feature value) + cumulative importance
- presentation.md: full slide content for IMT+Sogeti meeting
  - 12 slides covering Steps 1-4 done + Steps 5-8 planned
  - Tables, findings, and plot placeholders

Key finding: traffic(49.7%) + packets(47.0%) + avg_pkts_lambda(1.95%)
+ eq_lambda(1.34%) = 100% of importance. Bottom 6 timing features
are zero for constant_bitrate -> safe to mask in Step 5.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Connected to TRAVEL project, WP3 Task 3.2, IMT contribution plan
- Added Phase 1 (survey) -> Phase 2 (implementation) progression
- Full 22-input mapping table (path/link/queue/graph tensors)
- Justified why SHAP targets 10 scalar path features (not all 22)
- Justified 40 flows (20 low+20 high) - computational budget + contrastive design
- Justified 256 perturbations per flow (10x feature count rule)
- Justified constant_bitrate as baseline (all timing params = 0, clean)
- Justified keeping eq_lambda + avg_pkts_lambda despite small global importance
- Added TRAVEL architecture diagram (Phase 1 -> Phase 2 -> Contributions)
- Added Steps 5-8 detail and scientific question for retraining

14 slides total covering full internship arc

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant