Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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(). y = column_or_1d(y, warn=True)

model = forest.fit(train_fold, train_y.values.ravel())
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #A #passed #array #Please #change #shape
ADD COMMENT
Topic
Name
4+1 =