x = data[:, 0].reshape(-1, 1)
时间: 2024-01-16 14:05:09 浏览: 238
Reshaping data with the reshape package
This code takes the first column of the "data" array and reshapes it into a column vector.
The variable "x" now represents that reshaped column vector.
阅读全文