Skip to main content

A small example package

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

housing_tiger_2022-0.0.1.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

housing_tiger_2022-0.0.1-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file housing_tiger_2022-0.0.1.tar.gz.

File metadata

  • Download URL: housing_tiger_2022-0.0.1.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.7

File hashes

Hashes for housing_tiger_2022-0.0.1.tar.gz
Algorithm Hash digest
SHA256 7fb925c96e4d7592b9eef3a8d9ef6e53c4054da639dbd786915c50f2983054c4
MD5 e7e78aae59420fb45dc89f6da7280db2
BLAKE2b-256 9185ef2ea0628f0fecca06d85f984dc786f10763c431d8f1f78f7010da1e3e85

See more details on using hashes here.

File details

Details for the file housing_tiger_2022-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for housing_tiger_2022-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dfd4a9530e1ed98482e6a9e9511f6704ac5091cc83e3ed39d13a9f9a164556ee
MD5 e13e22d243ab92a1210d02ac9df1370d
BLAKE2b-256 b3767d1e1634a479623981c1f0b6e2c0e2aff59ffbc66140aaad88a78d007cf4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page