DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
4+1 =
Submit