TS3ReadoutSpec#
- class ibl_bwb_eval.TS3ReadoutSpec(id, label_names, region_key, metrics, target_resolution=TargetResolution.SEQUENCE)[source]#
Bases:
objectWhat one TS3 task predicts.
- id#
the task name.
- label_names#
the class order every
pred_probacolumn is indexed by. The scorer rejects a submission whoselabel_namesdisagree with the ground truth’s, so this is part of the on-disk format.
- region_key#
the
unitsfield the targets are read from.
- metrics#
mapping from metric name to the callable that computes it. Per task, not per suite: region classification reports P/R/F1, and a task regressing a CCF coordinate would declare error metrics instead. Each callable takes
(y_true, y_pred, label_names)and returns the scored names it owns.