Search
 
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
Name
8+9 =