sage.plotting.param_distribution

Filename : param_distribution.py Description : Short description of the file

Created on 2026-03-21 17:38:07

__author__ = Narenraju Nagarajan __copyright__ = Copyright 2026, ProjectName __license__ = MIT Licence __version__ = 0.0.1 __maintainer__ = Narenraju Nagarajan __affiliation__ = N/A __email__ = N/A __status__ = [‘inProgress’, ‘Archived’, ‘inUsage’, ‘Debugging’]

GitHub Repository: NULL

Documentation: NULL

Functions

plot_outputbin_param_distribution(epoch, ranking_stat, ...)

Distribution of source parameters within ranking-statistic output bins.

Module Contents

plot_outputbin_param_distribution(epoch, ranking_stat, labels, sample_params, export_dir=None, save=True)[source]

Distribution of source parameters within ranking-statistic output bins.

Bins all events by their ranking statistic and plots the parameter distribution (histogram) within each bin. Highlights whether certain parameter values cluster at low or high confidence scores.

Parameters:
  • epoch (int or str) – Epoch identifier used in the output subdirectory.

  • ranking_stat (array-like, shape (N,)) – Network ranking statistics.

  • labels (array-like, shape (N,)) – Binary ground-truth labels.

  • sample_params (dict[str, array-like]) – Per-event source parameter arrays.

  • export_dir (str or None) – Parent directory; plots saved under OUTBIN_PARAM_DISTR/epoch_{epoch}/.

  • save (bool) – If True, save to disk; otherwise display interactively.