Commit a44decc0 authored by Hongbin Yang's avatar Hongbin Yang
Browse files

Add doc for test and yapf

parent 0b0cd797
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -24,6 +24,9 @@ class MetricsTest(googletest.TestCase):
    self.assertAlmostEqual(kappa, expected_kappa)

  def test_one_sample(self):
    """Test that the metrics won't raise error even in an extreme condition
    where there is only one sample with w > 0.
    """
    np.random.seed(123)
    n_samples = 2
    y_true = np.array([0, 0])