def test_precision_at_proportions_y_score_vector():
    plot.precision_at_proportions(y_test, y_score_vector)
def test_precision_at_proportions():
    plot.precision_at_proportions(y_test, y_score)
def test_precision_at_proportions_y_score_vector():
    plot.precision_at_proportions(y_test, y_score_vector)
Exemple #4
0
 def test_precision_at_proportions(self):
     with self.assertRaisesRegexp(ValueError, "needed to plot"):
         plot.precision_at_proportions(None, [1, 0])
def test_precision_at_proportions():
    plot.precision_at_proportions(y_test, y_score)