使用array重塑数据。如果数据只有一个特征,则重塑(-1,1);如果数据包含一个样本,则重塑(1,-1)。

Reshape your data either using array.reshape(-1, 1) if your data has a single feature or array.reshape(1, -1) if it contains a single sample.
使用array重塑数据。如果数据只有一个特征,则重塑(-1,1);如果数据包含一个样本,则重塑(1,-1)。

发布了102 篇原创文章 · 获赞 101 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/weixin_43124279/article/details/104347814