DataConversionWarning: A column-vector y was passed when a 1d array was expected.Please change the shape of y to (n_samples,), for example using ravel(). def fit_clasifiers(gs_clfs, X, y): for clf in gs_clfs: print(X.shape) clf.fit(X, y)#before#fit_clasifiers(gs_clfs, X_train, y_train)#afterfit_clasifiers(gs_clfs, X_train, y_train.values.ravel())show_gridsearch_result(gs_clfs) f..
DataConversionWarning: A column-vector y was passed when a 1d array was expected.
DataConversionWarning: A column-vector y was passed when a 1d array was expected.Please change the shape of y to (n_samples,), for example using ravel(). def fit_clasifiers(gs_clfs, X, y): for clf in gs_clfs: print(X.shape) clf.fit(X, y)#before#fit_clasifiers(gs_clfs, X_train, y_train)#afterfit_clasifiers(gs_clfs, X_train, y_train.values.ravel())show_gridsearch_result(gs_clfs) f..
2021.05.19