(self)
| 102 | self._validateTopK(inputs, 2, [[0.4, 0.3], [0.4, 0.3]], [[3, 1], [2, 1]]) |
| 103 | |
| 104 | def testTop3(self): |
| 105 | k = 5 |
| 106 | inputs = np.random.permutation(np.linspace(0, 100, 6140, dtype=np.float64)) |
| 107 | indices = np.argsort(-inputs)[:k] |
| 108 | values = -np.sort(-inputs)[:k] |
| 109 | self._validateTopK(inputs, k, values, indices) |
| 110 | |
| 111 | def testTop1AllNan(self): |
| 112 | inputs = [[np.NaN, np.NaN], [np.NaN, np.NaN]] |
nothing calls this directly
no test coverage detected