california_housing

california dataset

x.shape (20640,8)
y.shape (20640,)

model.add(keras.layers.Dense(layer_size, activation=’relu’,
input_shape=(8,)))

数据

-MedInc        median income in block
- HouseAge      median house age in block
- AveRooms      average number of rooms
- AveBedrms     average number of bedrooms
- Population    block population
- AveOccup      average house occupancy
- Latitude      house block latitude
- Longitude
1
2
3
4
5
6
7
|MedInc|HouseAge|AveRooms|AveBedrms|Population|AveOccup|Latitude|Longitude
0 1 2 3 4 5 6 7
0 7.0671 11 7.64354067 0.980861244 1774 4.244019139 37.34 -121.78
1 2.3267 12 5.016483516 1.267857143 1677 2.303571429 33.14 -117.19
2 1.9893 19 4.083499006 1.0944334 2971 2.953280318 32.79 -116.97
3 4.1026 25 3.549682875 0.993657505 1314 2.778012685 33.65 -117.92
4 3.8333 48 5.234200743 1.096654275 891 3.312267658 37.76 -122.5