Skip to content

Instantly share code, notes, and snippets.

@kezeh32
Created January 23, 2022 02:48
Show Gist options
  • Save kezeh32/0843c4eb0af4a04ad81182afe38bc443 to your computer and use it in GitHub Desktop.
Save kezeh32/0843c4eb0af4a04ad81182afe38bc443 to your computer and use it in GitHub Desktop.
Python
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])
@kezeh32
Copy link
Author

kezeh32 commented Jan 23, 2022

Page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment