Quantcast
Viewing all articles
Browse latest Browse all 4448

Linear Regression

@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: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles