0% found this document useful (0 votes)
28 views3 pages

ML Assignment 1

The document discusses preparing a house prices dataset for machine learning by removing null values, splitting into training and testing sets, encoding categorical data, and then performing linear regression and polynomial regression to predict sale prices based on lot area.

Uploaded by

Sreetam Ganguly
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views3 pages

ML Assignment 1

The document discusses preparing a house prices dataset for machine learning by removing null values, splitting into training and testing sets, encoding categorical data, and then performing linear regression and polynomial regression to predict sale prices based on lot area.

Uploaded by

Sreetam Ganguly
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Machine Learning Assignment

Sreetam Ganguly
B.Tech Seventh Semester
September 7, 2021
The house prices dataset is downloaded and nan values are removed. The dataset is then split into
training and testing sets. The categorical data was encoded.

The training and test sets have the following sizes.

The Pearson Correlation heatmap is given below.


Then linear regression is performed. The scores are given below.
The resulting MSE is plotted below.

Using polynomial regression of degree two and three, we estimate the value of the
weights/coefficients for predicting 'SalePrice' based on 'LotArea' and have a graph output.

You might also like