Hands-On Neural Networks with Keras
上QQ阅读APP看书,第一时间看更新

Checking the shape and type

You can check the number of reviews per split by checking the .shape parameter of x_train, which is essentially a NumPy array of n-dimensions:

x_train.shape, x_test.shape, type(x_train)
((25000,), (25000,), numpy.ndarray)