Пример #1
0
def test_contextual_confusion_matrix_overlap_points(expected_point,
                                                    observed_point):
    expected_return = (None, 1, 1, 5)
    returned = contextual_confusion_matrix(expected_point,
                                           observed_point,
                                           weighted=False)
    np.testing.assert_array_equal(np.array(returned),
                                  np.array(expected_return))
Пример #2
0
def test_contextual_confusion_matrix_points(expected_point, observed_point):
    expected_return = (4, 7, 3, 5)
    returned = contextual_confusion_matrix(expected_point, observed_point)
    np.testing.assert_array_equal(np.array(returned),
                                  np.array(expected_return))
Пример #3
0
def test_contextual_confusion_matrix(expected, observed):
    expected_return = (3, 6, 6, 8)
    returned = contextual_confusion_matrix(expected, observed)
    np.testing.assert_array_equal(np.array(returned),
                                  np.array(expected_return))