Learn practical skills, build real-world projects, and advance your career

House Price Prediction with Linear Regression

alt

In this assignment, you're going to predict the price of a house using information like its location, area, no. of rooms etc. You'll use the dataset from the House Prices - Advanced Regression Techniques competition on Kaggle. We'll follow a step-by-step process to train our model:

  1. Download and explore the data
  2. Prepare the dataset for training
  3. Train a linear regression model
  4. Make predictions and evaluate the model

Step 1 - Download and Explore the Data

The dataset is available as a ZIP file at the following url:

dataset_url = 'https://github.com/JovianML/opendatasets/raw/master/data/house-prices-advanced-regression-techniques.zip'

We'll use the urlretrieve function from the module urllib.request to dowload the dataset.

from urllib.request import urlretrieve