Y_train.shape
输出为
(650,)
但我想输出
(650,1)
我该怎么办?
这应该可以完成任务-
Y_train = Y_train[:, np.newaxis]
Y_train.shape
输出为
(650,)
但我想输出
(650,1)
我该怎么办?
这应该可以完成任务-
Y_train = Y_train[:, np.newaxis]
javascript python java c# php android html jquery c++ css ios sql mysql arrays asp.net json python-3.x ruby-on-rails .net sql-server django objective-c excel regex ruby linux ajax iphone xml vba spring asp.net-mvc database wordpress string postgresql wpf windows xcode bash git oracle list vb.net multithreading eclipse algorithm macos powershell visual-studio image forms numpy scala function api selenium