Skip to main content

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

Release files for housing-price-predictor-devaraj-saravana 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for housing-price-predictor-devaraj-saravana 0.0.1
File Size Uploaded
housing_price_predictor_devaraj_saravana-0.0.1.tar.gz 7.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for housing-price-predictor-devaraj-saravana 0.0.1
File Interpreter ABI Platform
housing_price_predictor_devaraj_saravana-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 15.4 kB

Release files / housing_price_predictor_devaraj_saravana-0.0.1.tar.gz

Download URL housing_price_predictor_devaraj_saravana-0.0.1.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
34f7ce2e9c1dcd73b102f261a9b03de9539ea3589d33c11446016c7bce83cc4a
BLAKE2b-256 checksum
How to use checksums
27791464286244792e67230f423db65ffc8437c7003f8b7c0818a95b373fc42e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.12

Release files / housing_price_predictor_devaraj_saravana-0.0.1-py3-none-any.whl

Download URL housing_price_predictor_devaraj_saravana-0.0.1-py3-none-any.whl
Size 8.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2a999ffb93fc15b581ac273ef148443ec8a7eebe337d7a366980f764a3331163
BLAKE2b-256 checksum
How to use checksums
58d05a29c54016e8db311c1567f3f6a99679c2f19eb0b2dd268a0a9d4ecf7c8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.12

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page