def test_random_score(): classes, data = generate_random_items() distances = abx_numpy.compute_distances(data, distance_function_test) average, labels, scores = abx_numpy.score(classes, distances) assert np.abs(average - 0.5) < tolerance
def test_random_distances(): classes, data = generate_random_items() distances = abx_numpy.compute_distances(data, distance_function_test) distances