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
As you go through this notebook, you will find a ??? in certain places. Your job is to replace the ??? with appropriate code or values, to ensure that the notebook runs properly end-to-end and your machine learning model is trained properly without errors.
- Make sure to run all the code cells in order. Otherwise, you may get errors like
NameErrorfor undefined variables.
- Do not change variable names, delete cells, or disturb other existing code. It may cause problems during evaluation.
- In some cases, you may need to add some code cells or new statements before or after the line of code containing the ???.
- Since you'll be using a temporary online service for code execution, save your work by running
jovian.commitat regular intervals.
- Review the "Evaluation Criteria" for the assignment carefully and make sure your submission meets all the criteria.
- Questions marked (Optional) will not be considered for evaluation and can be skipped. They are for your learning.
- It's okay to ask for help & discuss ideas on the community forum, but please don't post full working code, to give everyone an opportunity to solve the assignment on their own.
- Make a submission here: https://jovian.ai/learn/machine-learning-with-python-zero-to-gbms/assignment/assignment-1-train-your-first-ml-model
- Ask questions, discuss ideas and get help here: https://jovian.ai/forum/c/zero-to-gbms/gbms-assignment-1/100
- Review the following notebooks:
How to Run the Code and Save Your Work
Option 1: Running using free online resources (1-click, recommended): The easiest way to start executing the code is to click the Run button at the top of this page and select Run on Binder. This will set up a cloud-based Jupyter notebook server and allow you to modify/execute the code.
Option 2: Running on your computer locally: To run the code on your computer locally, you'll need to set up Python, download the notebook and install the required libraries. Click the Run button at the top of this page, select the Run Locally option, and follow the instructions.
Saving your work: You can save a snapshot of the assignment to your Jovian profile, so that you can access it later and continue your work. Keep saving your work by running
jovian.commit from time to time.
!pip install jovian scikit-learn --upgrade --quiet
[jovian] Updating notebook "math-nights/python-sklearn-assignment" on https://jovian.ai/
[jovian] Committed successfully! https://jovian.ai/math-nights/python-sklearn-assignment