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_assignment2.1_5505-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_assignment2.1_5505-0.1-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file housing_assignment2.1_5505-0.1.tar.gz.

File metadata

File hashes

Hashes for housing_assignment2.1_5505-0.1.tar.gz
Algorithm Hash digest
SHA256 3a92d4f04e120485e945a5618ebebc30204ea15f3049d06a3973cad2c13676ec
MD5 f6ac8170f60bb4eb84877b6b8d78e8cd
BLAKE2b-256 2c5a7c1eaca2df1c2e8b105e7044021533cb8fe65ccca975a25fa42dc31e09e2

See more details on using hashes here.

File details

Details for the file housing_assignment2.1_5505-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for housing_assignment2.1_5505-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cd7ca1bc9eacebf3abc3e51079c66e066807d69ba6aea73a7eca8536d7c6139e
MD5 1c49055167120303b4d17c1a0b60d120
BLAKE2b-256 342762789c768114cf73b38286df23afe2dc5ea3ae1d262a29583dea5288ad67

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