Example #1
0
def half_asym_fn(A, B):
    return DTW.dist_damn_adv(
        A,
        B,
        [(-1, -3), (-1, -2), (-1, -1), (-2, -1), (-3, -1)],
        [[1 / 3, 1 / 3, 1 / 3], [1 / 2, 1 / 2], [1], [1, 1], [1, 1, 1]],
    )
Example #2
0
def bad_fn(A, B):
    return DTW.dist_damn_adv(A, B, [(-1, -1)], [[1]])
Example #3
0
def two_asym_fn(A, B):
    return DTW.dist_damn_adv(A, B, [(-2, -3), (-1, -1), (-3, -2)], [[2 / 3, 2 / 3, 2 / 3], [1], [1, 1, 1]])
Example #4
0
def two_sym_fn(A, B):
    return DTW.dist_damn_adv(A, B, [(-2, -3), (-1, -1), (-3, -2)], [[2, 2, 1], [2], [2, 2, 1]])
Example #5
0
def one_asym_fn(A, B):
    return DTW.dist_damn_adv(A, B, [(-1, -2), (-1, -1), (-2, -1)], [[1 / 2, 1 / 2], [1], [1, 1]])
Example #6
0
def one_sym_fn(A, B):
    return DTW.dist_damn_adv(A, B, [(-1, -2), (-1, -1), (-2, -1)], [[2, 1], [2], [2, 1]])
Example #7
0
def normal_asym_fn(A, B):
    return DTW.dist_damn_adv(A, B, [(0, -1), (-1, -1), (-1, 0)], [[1], [1], [1]])