How to load sklearn Boston Housing data?

How to load sklearn Boston Housing data?

How to load sklearn Boston Housing data?

This recipe helps you load sklearn Boston Housing data


Recipe Objective

Do you know python provide inbuilt datasets. There are many datasets provided by python. Here we will loading one of them.

So this is the recipe on how we can load sklearn Boston housing data.

Step 1 - Import the library

from sklearn import datasets

We have only imported datasets which is needed.

Step 2 - Importing dataset

We have created an object to load boston dataset. boston = datasets.load_boston()

Step 3 - Setting the dataset

We are saving data in object X and target in object Y we have printed shape. X = print(X.shape); y = print(y.shape); So the output comes as

(506, 13)


Relevant Projects

Predict Employee Computer Access Needs in Python
Data Science Project in Python- Given his or her job role, predict employee access needs using amazon employee database.

Demand prediction of driver availability using multistep time series analysis
In this supervised learning machine learning project, you will predict the availability of a driver in a specific area by using multi step time series analysis.

Mercari Price Suggestion Challenge Data Science Project
Data Science Project in Python- Build a machine learning algorithm that automatically suggests the right product prices.

Build a Collaborative Filtering Recommender System in Python
Use the Amazon Reviews/Ratings dataset of 2 Million records to build a recommender system using memory-based collaborative filtering in Python.

Human Activity Recognition Using Multiclass Classification in Python
In this human activity recognition project, we use multiclass classification machine learning techniques to analyse fitness dataset from a smartphone tracker.

Data Science Project in Python on BigMart Sales Prediction
The goal of this data science project is to build a predictive model and find out the sales of each product at a given Big Mart store.

Resume parsing with Machine learning - NLP with Python OCR and Spacy
In this machine learning resume parser example we use the popular Spacy NLP python library for OCR and text classification.

Build a Music Recommendation Algorithm using KKBox's Dataset
Music Recommendation Project using Machine Learning - Use the KKBox dataset to predict the chances of a user listening to a song again after their very first noticeable listening event.

Machine Learning Project to Forecast Rossmann Store Sales
In this machine learning project you will work on creating a robust prediction model of Rossmann's daily sales using store, promotion, and competitor data.

Zillow’s Home Value Prediction (Zestimate)
Data Science Project in R -Build a machine learning algorithm to predict the future sale prices of homes.