D | metric_ops_test.py | 1617 def _testCase(self, labels, predictions, curve, expected_points): member in StreamingCurvePointsTest 1634 self._testCase([[1]], [[1]], 'ROC', [[0, 1], [0, 1], [0, 0]]) 1635 self._testCase([[0]], [[0]], 'ROC', [[1, 1], [0, 1], [0, 1]]) 1636 self._testCase([[0]], [[1]], 'ROC', [[1, 1], [1, 1], [0, 1]]) 1637 self._testCase([[1]], [[0]], 'ROC', [[0, 1], [0, 0], [0, 0]]) 1640 self._testCase([[1.0, 0.0, 0.0, 1.0, 1.0, 1.0]], 1645 self._testCase([[1]], [[1]], 'PR', [[1, 1], [1, 1], [0, 1]]) 1646 self._testCase([[0]], [[0]], 'PR', [[1, 0], [1, 1], [1, 1]]) 1647 self._testCase([[0]], [[1]], 'PR', [[1, 0], [1, 0], [1, 1]]) 1648 self._testCase([[1]], [[0]], 'PR', [[1, 1], [0, 1], [0, 1]]) [all …]
|