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)。
使用array重塑数据。如果数据只有一个特征,则重塑(-1,1);如果数据包含一个样本,则重塑(1,-1)。
猜你喜欢
转载自blog.csdn.net/weixin_43124279/article/details/104347814
今日推荐
周排行