Created
January 23, 2022 02:48
-
-
Save kezeh32/0843c4eb0af4a04ad81182afe38bc443 to your computer and use it in GitHub Desktop.
Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
features =["floors", "waterfront","lat" ,"bedrooms" ,"sqft_basement" ,"view" ,"bathrooms","sqft_living15","sqft_above","grade","sqft_living"] | |
X = df[features] | |
Y = df['price'] | |
x_train, x_test, y_train, y_test = train_test_split(X, Y, test_size=0.15, random_state=1) | |
print("number of test samples:", x_test.shape[0]) | |
print("number of training samples:",x_train.shape[0]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Page