Skip to main content

Sample code for coding practice

Project description

#This Submission consists of soulutions for Tamlep-Assignment-2.1

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

Steps to reproduce:

  1. unzip dist/housing_library_5500-0.1-py3-none-any.whl -d wheel_contents
  2. cd wheel_contents
  3. python3 house_price_prediction/score.py

To activate the environment

conda activate <environment-name>

To export the environment

conda env export > environment.yml

To import the environment

conda env create -f environment.yml

LICENSE

This project is licensed under the MIT license - see the (LICENSE) file for details

Project details


Release history Release notifications | RSS feed

This version

0.2

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_5500-0.2.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

housing_library_5500-0.2-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file housing_library_5500-0.2.tar.gz.

File metadata

  • Download URL: housing_library_5500-0.2.tar.gz
  • Upload date:
  • Size: 6.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_5500-0.2.tar.gz
Algorithm Hash digest
SHA256 698e59238b584db0455aacb96745b52d1788eac89e550a58a9696345adfc3e52
MD5 6b4af9119cccd99be0652de8a0f02ef6
BLAKE2b-256 0d01466a0805a78aac3fb16f5d81f73c9a9345ff403a7eb362aacab17327b056

See more details on using hashes here.

File details

Details for the file housing_library_5500-0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for housing_library_5500-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 33899687e9c944975786b189d89ff53fdc8a552200487503aee30b075af0a0da
MD5 920bf01f6ef700b81af7e24ebfd8cb6b
BLAKE2b-256 f55be99e2f1eb172ae50c71075eb3a063bac5bb1bc066651bfb30fe4e9106f47

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