MCPcopy Index your code
hub / github.com/tensorflow/tfjs-examples / testLoadData

Method testLoadData

iris/python/iris_data_test.py:30–38  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

28class IrisDataTest(unittest.TestCase):
29
30 def testLoadData(self):
31 iris_x, iris_y = iris_data.load()
32 self.assertEqual(2, len(iris_x.shape))
33 self.assertGreater(iris_x.shape[0], 0)
34 self.assertEqual(4, iris_x.shape[1])
35 self.assertEqual(iris_x.shape[0], iris_y.shape[0])
36 self.assertEqual(3, iris_y.shape[1])
37 self.assertTrue(
38 np.allclose(np.ones([iris_y.shape[0], 1]), np.sum(iris_y, axis=1)))
39
40
41if __name__ == '__main__':

Callers

nothing calls this directly

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected