Quantcast
Channel: Data Science, Analytics and Big Data discussions - Latest topics
Viewing all articles
Browse latest Browse all 4448

Difference in train and test values

$
0
0

@ASHISH_17 wrote:

Hello,

Below is the size of train and test dataset -

X_train.shape, y_train.shape, X_test.shape
((548, 7), (548,), (548, 6))

After running a Linear Regression, I am getting an error as follows -
ValueError: shapes (548,6) and (7,) not aligned: 6 (dim 1) != 7 (dim 0)

What is the reason behind it and how to correct it?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles