from sklearn.datasets import load_boston
boston = load_boston()
print(boston.keys())
from sklearn.datasets import load_boston
import matplotlib.pyplot as plt
boston = load_boston()
data = boston.data
print(boston.keys())
x = data[:,5]
y = boston.target
plt.scatter(x,y)
plt.plot(x,9*x-30,c = 'r')
from sklearn.datasets import load_boston
import matplotlib.pyplot as plt
from sklearn.linear_model import LinearRegression
boston = load_boston()
data = boston.data
x = data[:,5]
y = boston.target
import numpy as np
from sklearn.datasets import load_boston
import matplotlib.pyplot as plt
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LinearRegression
boston = load_boston()