def NormalizeDictVector(d):
    normalized = {}
    divisor = sum(d.values())
    for key in d:
        normalized[key] = d[key] / divisor
    return normalized
Adjusts numerical values so they add up to 1.
dataset/ETHPy150Open j3camero/canada-election-forecast/riding_forecast.py/NormalizeDictVector