Python, Machine Learning, Artificial Intelligence, Programming, Matrix.
There are also some other methods, that can be used to create some particular arrays: np.ones(shape) creates an array filled with ones. The shape can be an int (to create a vector) or a tuple (to create a matrix/tensor) >>>np.ones((2,3)) [[1. 1. 1.] [1. 1. 1.]] np.zeros(shape) creates an array