• Boston Dataset is a part of sklearn library. 
  • Sklearn comes loaded with datasets to practice machine learning techniques and boston is one of them. 
  • Boston has 13 numerical features and a numerical target variable. 
  • Boston dataset can be used for regression.
  • Let’s learn to load and explore the famous dataset.  

Code to load and view Boston Dataset

# Imports 
from sklearn.datasets import load_boston
import pandas as pd

# Load Data
boston = load_boston()

# Create a dataframe
df = pd.DataFrame(boston.data, columns = boston.feature_names)
df['target'] = boston.target
X = boston.data

That's how we learned about Boston Dataset

That’s all for this mini tutorial. To sum it up, we learned how to Build Logistic Regression classifier.

Hope it was easy, cool and simple to follow. Now it’s on you.

Leave a Reply

Your email address will not be published.