sage.plotting.roc_curve
Filename : roc_curve.py Description : Short description of the file
Created on 2026-03-21 17:20:08
__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 and optionally save a log-log ROC curve for one validation epoch. |
Module Contents
- plot_roc_curve(epoch, ranking_stat, labels, export_dir=None, save=True)[source]
Plot and optionally save a log-log ROC curve for one validation epoch.
- Parameters:
epoch (int or str) – Epoch identifier used in the plot title and filename.
ranking_stat (array-like, shape
(N,)) – Network ranking statistic (higher = more signal-like).labels (array-like, shape
(N,)) – Binary ground-truth labels (1 = signal, 0 = noise).export_dir (str or None) – Directory to save the figure. A
ROC/subdirectory is created automatically. Required whensave=True.save (bool) – If
True, save to disk; otherwise display interactively.