california's housing price prediction
Project description
Median housing value prediction
The housing data can be downloaded from https://raw.githubusercontent.com/ageron/handson-ml/master/. The script has codes to download the data. We have modelled the median house value on given housing data.
The following techniques have been used:
- Linear regression
- Decision Tree
- Random Forest with RandomizedSearchCV
- Random Forest with GridSearchCV
Steps performed
- We prepare and clean the data. We check and impute for missing values.
- Features are generated and the variables are checked for correlation.
- Multiple sampling techinuqies are evaluated. The data set is split into train and test.
- All the above said modelling techniques are tried and evaluated.
- Mean squared error, Root mean squaerd error, Mean absolute error metrics are used to evaluate the model
To excute the script's
There are three scripts need to run for evaluating the model
$ python ingest_data.py -p raw
you can run this script with specifying where you want to place the downloaded data and also with default arguments
$ python train.py -x housing_prepared.csv -y housing_labes.csv
you can run this script with specifying dependent and independent variables and also with no argument passed
$ python score.py -m final_model.pkl -d test_set.csv
you can run this script with specifying which ML model want to use and with what dataset to score metrics
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file housing_prediction_devaraj_saravana-0.0.1.tar.gz
.
File metadata
- Download URL: housing_prediction_devaraj_saravana-0.0.1.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 975534ea4a2934c8792a7a99fd5f2dbfa574595e088325197c67b2c7b8ecfd95 |
|
MD5 | a60ac357db20a0d06e88c20ce1a51b32 |
|
BLAKE2b-256 | 4d38ca860d45acecc96f61dc614d4469ec6008d6ecdd20a9ae69d2a537fd70fe |
File details
Details for the file housing_prediction_devaraj_saravana-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: housing_prediction_devaraj_saravana-0.0.1-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fbf6e2b9d884c9c6e9ea5d5c0a2f75419be6ee361a3f7fd942bc4bccf5580a52 |
|
MD5 | a2aa82816b4f5e5b1f5a3b392efbbd26 |
|
BLAKE2b-256 | bc646245f6f437a467270216162ad8bcaa599aa508d4009ca417af88fcd4b28a |