tumourkit.eval_pipe.compute_ece
- tumourkit.eval_pipe.compute_ece(args: Namespace, split: str, is_hov: bool) None
Computes Expected Calibration Error (ECE) and other metrics for the given split.
- Parameters:
args (Namespace) – The arguments for computing ECE and metrics.
split (str) – The name of the split (e.g., ‘train’, ‘validation’, ‘test’).
is_hov (bool) – Whether we are computing for hovernet or gnns. The directories have different structure, so we need to know.