BiomedParse / inference_utils /target_dist.py
kernel-luso-comfort's picture
Add testing support and new utility function for target distribution
29c9bfa
raw
history blame
155 Bytes
def modality_targets_from_target_dist(target_dist: dict) -> dict:
return {modality: list(targets.keys()) for modality, targets in target_dist.items()}