Skip to main content

Sample code for coding practice

Project description

Median housing value prediction

The housing data can be downloaded from https://github.com/ageron/handson-ml/blob/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

python nonstandardcode.py

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_library_5515-0.1.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for housing_library_5515-0.1.tar.gz
Algorithm Hash digest
SHA256 a8f05293e81bf00063a71e9f6ac8746ca9b00fd85d78b66dd483eef3bac7622d
MD5 1830eb2e1d45dc0b233d6d1deb167a66
BLAKE2b-256 cd623621b94717c6c74b64660b99ec9519cbc413358870bbdc0c35349410cc69

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for housing_library_5515-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3c01cada2399f5eb555ae0c70858034cbb413328fa8ba684dd4658a48724c964
MD5 ac7d33e8c8afd95fd4875710bf97f466
BLAKE2b-256 01cb3e93c4b6aedece8762ce9f0e12f16cc16e59bb6055a5ca265681d0c05bf1

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