Skip to content

All Metrics - #13

Merged
orabe merged 3 commits into
mainfrom
uncertainty-metrics
Jun 30, 2025
Merged

orabe merged 3 commits into
mainfrom
uncertainty-metrics

Conversation

@IsmailHuseynov

Copy link
Copy Markdown
Collaborator

Uncertainty and Calibration Metrics + Source Localization Metric: EMD

This update introduces a complete framework for evaluating uncertainty, calibration, and source localization performance in EEG/MEG inverse solvers, covering both sparse and dense methods.

Key Features:

  1. Uncertainty & Calibration Metrics

    • Works for sparse solvers (e.g., γ-MAP or γ-MAP with noise learning ) and dense solvers (e.g., eLORETA, BMN).
    • Metrics include:
      • Calibration curve (nominal vs. empirical)
      • AAD: Average Absolute Deviation
      • ASD: Average Signed Deviation
      • Max Underconfidence / Overconfidence
      • Mean Posterior Std (uncertainty)
  2. Visualization

    • Smooth calibration curves with a reference line for perfect calibration.
  3. EMD for Source Localization

    • Computes Earth Mover’s Distance (Wasserstein-2) between true and estimated source distributions.
    • Supports both fixed and free orientations.
    • Leverages subject-specific forward models to map spatial locations.

Files Added:

  • un_calib_metrics_sparse_fixed.py
  • un_calib_metrics_dense_fixed.py
  • EMD_metric_fixed_free.py

@orabe
orabe merged commit 77c3cac into main Jun 30, 2025
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.

2 participants