snagulap / Machine-Learning

Machine learning-projects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Machine-Learning

Machine learning-projects

DESCRIPTION

Background of Problem Statement :

The US Census Bureau has published California Census Data which has 10 types of metrics such as the population, median income, median housing price, and so on for each block group in California. The dataset also serves as an input for project scoping and tries to specify the functional and nonfunctional requirements for it.

Problem Objective :

The project aims at building a model of housing prices to predict median house values in California using the provided dataset. This model should learn from the data and be able to predict the median housing price in any district, given all the other metrics.

Districts or block groups are the smallest geographical units for which the US Census Bureau publishes sample data (a block group typically has a population of 600 to 3,000 people). There are 20,640 districts in the project dataset.

Domain: Finance and Housing

Analysis Tasks to be performed:

  1. Build a model of housing prices to predict median house values in California using the provided dataset.

  2. Train the model to learn from the data to predict the median housing price in any district, given all the other metrics.

  3. Predict housing prices based on median_income and plot the regression chart for it.

  4. Load the data :

Read the “housing.csv” file from the folder into the program. Print first few rows of this data. Extract input (X) and output (Y) data from the dataset. 2. Handle missing values :

Fill the missing values with the mean of the respective column. 3. Encode categorical data :

Convert categorical column in the dataset to numerical data. 4. Split the dataset :

Split the data into 80% training dataset and 20% test dataset. 5. Standardize data :

Standardize training and test datasets.

  1. Perform Random Forest Regression :

Perform Random Forest Regression on training data. Predict output for test dataset using the fitted model. Print RMSE (root mean squared error) from Random Forest Regression.

About

Machine learning-projects


Languages

Language:Jupyter Notebook 100.0%