Created
October 1, 2018 13:28
-
-
Save animesh-agarwal/1656e6bb5d6f91484d2d92a23cb86dad to your computer and use it in GitHub Desktop.
This file contains hidden or 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
plt.figure(figsize=(20, 5)) | |
features = ['LSTAT', 'RM'] | |
target = boston['MEDV'] | |
for i, col in enumerate(features): | |
plt.subplot(1, len(features) , i+1) | |
x = boston[col] | |
y = target | |
plt.scatter(x, y, marker='o') | |
plt.title(col) | |
plt.xlabel(col) | |
plt.ylabel('MEDV') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment