Пример #1
0
    def test_scores_snapshot(self):
        accuracy, f1, positive_recall = test_scores_snapshot(
            self, "FakeNews", model)

        self.assertGreater(accuracy, 0.84)
        self.assertGreater(f1, 0.84)
        self.assertGreater(positive_recall, 0.85)
Пример #2
0
    def test_scores_snapshot(self):
        accuracy, f1, positive_recall = test_scores_snapshot(
            self, "ExtremelyBiased", model)

        self.assertGreater(accuracy, 0.72)
        self.assertGreater(f1, 0.72)
        self.assertGreater(positive_recall, 0.77)
Пример #3
0
    def test_scores_snapshot(self):
        accuracy, f1, positive_recall = test_scores_snapshot(
            self, "ClickBait", model)

        self.assertGreater(accuracy, 0.64)
        self.assertGreater(f1, 0.63)
        self.assertGreater(positive_recall, 0.67)