LABELS = {
    0: "~10",
    1: "11",
    2: "12",
    3: "13",
    4: "14~",
}


def probabilities_from_label(label_id: int, confidence: float = 0.55) -> dict[str, float]:
    remaining = max(0.0, 1.0 - confidence)
    per_other = remaining / (len(LABELS) - 1)
    return {label: (confidence if idx == label_id else per_other) for idx, label in LABELS.items()}
