Learn practical skills, build real-world projects, and advance your career
Created 3 years ago
House Price Prediction with Linear Regression
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:
- Download and explore the data
- Prepare the dataset for training
- Train a linear regression model
- 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