Mock - Coding: Numpy NP CSV Sklearn - Linear - Model Pandas PD Matplotlib - Pyplot PLT Sklearn - Metrics
Mock - Coding: Numpy NP CSV Sklearn - Linear - Model Pandas PD Matplotlib - Pyplot PLT Sklearn - Metrics
December 2, 2020
[342]: dataset.dropna(inplace=True)
[344]: dataset.head()
1
region_southwest
0 1
2 0
3 0
4 0
5 0
[345]: dataset.dtypes
[[19. 27.9 0. 1. 0. 0. 1. 0. 0. 0. 1. ]
[28. 33. 3. 0. 1. 1. 0. 0. 0. 1. 0. ]]
[16884.924 4449.462]
[348]: LinearRegression()
RMSE: 6239.55
R^2: 0.74