DL-Broadcast-Tool/utils/tiers.py

16 lines
No EOL
496 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# ============================================================
# TIER MAPPING
# ------------------------------------------------------------
# Converts normalized tag scores (0–1) into caster-friendly tiers.
# ============================================================
def map_score_to_tier(score: float) -> str:
if score >= 0.90:
return "S"
if score >= 0.75:
return "A"
if score >= 0.60:
return "B"
if score >= 0.45:
return "C"
return "D"