How to load sklearn Boston Housing data?
0

How to load sklearn Boston Housing data?

This recipe helps you load sklearn Boston Housing data
In [1]:
## How to load sklearn Boston Housing data 
def Kickstarter_Example_21():
    print()
    print(format('How to load sklearn Boston housing data', '*^72'))

    # Load libraries
    from sklearn import datasets

    # Load Boston Housing Dataset
    boston = datasets.load_boston()

    # Create feature matrix
    X = boston.data
    print(); print(X.shape);

    #print(X)
    # Create target vector
    y = boston.target
    print(); print(y.shape);
    #print(y)

Kickstarter_Example_21()
****************How to load sklearn Boston housing data*****************

(506, 13)

(506,)