Skip to main content

Sample code for coding practice

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

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. The final metric used to evaluate is mean squared error.

To excute the script

python3 nonstandardcode.py

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

housing_5513-0.1.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

housing_5513-0.1-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file housing_5513-0.1.tar.gz.

File metadata

  • Download URL: housing_5513-0.1.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for housing_5513-0.1.tar.gz
Algorithm Hash digest
SHA256 0759e7ae3e7753c9a3983f459454741c11835dca2908d02b53905940ce9f31d7
MD5 17dd4c79803b9a9c4381631062cf7bc5
BLAKE2b-256 4ec474643bb2745b1a4d38855e8f1ac59093573d94d6dc192b5132f196aa5127

See more details on using hashes here.

File details

Details for the file housing_5513-0.1-py3-none-any.whl.

File metadata

  • Download URL: housing_5513-0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for housing_5513-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 54f3406a47f61820693c7c194b68d251a54ec9f05c6843a8fdf4a684754a36fc
MD5 ddc97e547c37467ac3d1270315a4deed
BLAKE2b-256 28ed49d9500c380aadd7a8828af1b7623453c53631ead76731d565d47187fa84

See more details on using hashes here.

Supported by

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