Coders Packet

Chennai house price prediction using matplotlib in Python

By Kamalesh P

This Python machine learning model is used to predict the price of house using various factors such as no.of.rooms, no.of.bathrooms, no.of.halls and also the size of the area in sqft.

step 1 - we import the data set and the libarys such as NumPy and pandas

step 2 - now we scale the inputs to a smaller values because the models require small intger to process faster

step 3- now we instert a dummy variale in the ones column

step 4- we import the matplot lib libary and plot the data set in a graph

step 5 - now we slipt the datas into input and output as area is taken and input and proce as output in our model

step 6- we create a thetha matrix and compute the error function

step 7 - we create a linear model and use different hyper parametrs such as learning rate

step8- we now plot our model graph and see the error in graph using matplot lib

step 9- the accuracy is been calculated and the prediction function is been called

step 10- we print the predicted values for the given input

Download Complete Code

Comments

No comments yet

Download Packet

Reviews Report

Submitted by Kamalesh P (kamaleshp)

Download packets of source code on Coders Packet