DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
valueerror expected 2d array got 1d array instead python linear regression
x_train= x_train.reshape(-1, 1) y_train= y_train.reshape(-1, 1) x_test = x_test.reshape(-1, 1)
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#valueerror
#expected
#array
#array
#python
#linear
#regression
ADD COMMENT
Topic
COMMENT
Name
5+2 =
Submit