d0rj's picture
feat: Initial commit
1719436
raw
history blame
178 Bytes
import numpy as np
def grade_to_weight(g: str) -> float:
"""Convert a grade string to a weight value."""
parts = list(map(int, g.split('-')))
return np.mean(parts)