(key_pair_dict, default_value=0.0)
return result
Transform dictionary from pairs of keys to dict -> dict -> float
Transform dictionary from pairs of keys to dict -> dict -> float
Transform dictionary from pairs of keys to dict - > dict - > float
def curry_pair_dictionary(key_pair_dict, default_value=0.0):
    """
    Transform dictionary from pairs of keys to dict -> dict -> float
    """
    result = defaultdict(dict)
    for (a, b), value in key_pair_dict.items():
        result[a][b] = value
    return result
def curry_pair_dictionary ( key_pair_dict , default_value = 0.0 ) : result = defaultdict ( dict ) for ( a , b ) , value in key_pair_dict . items ( ) : result [ a ] [ b ] = value return result