Quantcast
Channel: Data Science, Analytics and Big Data discussions - Topics tagged data_science
Viewing all articles
Browse latest Browse all 787

Linear Regression

$
0
0

@vishal62 wrote:

I was going through few linear regression models. Can someone explain the relevance of " random_state" during the splitting of the data to trained set and test test.

X_train, X_test, y_train, y_test = \
    train_test_split(X, y, test_size=0.30, random_state=0)

what is the consequence of setting different values to random_state?

Posts: 3

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 787

Trending Articles