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 nonstandard.py

Command to create environment from env.yml file

conda env create -f env.yml

Command to activate the environment

conda activate mle-dev

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

Uploaded Source

Built Distribution

housing_library_5506-0.1-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for housing_library_5506-0.1.tar.gz
Algorithm Hash digest
SHA256 e1c0796009962d7a3f3016b25b36bfbf37a5fd8ba4ee9fb9c72b0c229c3c642a
MD5 d3201a772f9ecd102f217a9ca5667ef1
BLAKE2b-256 e7c002c11a18e9b8585338d4866d160ff039f9fb4a7fa7f800c9b0ea990f1905

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for housing_library_5506-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 33e4d880d495df3635512b6e4b00bf42fd0fb2bd3308157231858f6a67276947
MD5 a25725a25828da186caf5ef92d2255bc
BLAKE2b-256 c7fac62ac576bf57af8f4f9e32b0b4da935ef5d98e589d63e469b981ff4a6bcd

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