Skip to main content

Sample code for coding practice

Project description

#This change is for the Pull request

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.

##Packaging python code and test it using score.py

python -m build (Create a .tgz and .whl files of our project for the packing) twine upload dist.* (Upload our packaging files to the pypi to make it globally accesable to all users) -> Inorder to do upload the files to pypi we need to create an account in the pypi and generate and token.

How to install the package and import the methods

  1. Install the package name = housing-library-5512==0.1

pip install housing-library-5512==0.1

  1. In code file use these statements to import the required methods.

from src import fetch_housing_data, load_housing_data

Testing with sample code for the package

-> We tested it by running score.py file to test the package

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

housingLibrary_5508-0.1.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for housingLibrary_5508-0.1.tar.gz
Algorithm Hash digest
SHA256 44c2638fb90d3703ccaf029677031947fa77b8b9b9627c18429505d22c3a302b
MD5 4dc25f80f7e47be3c7b4544e1fb096d7
BLAKE2b-256 3655c11da416c7bca9024d0e3bcb941b5b9d6f3557c76606189cd03ffee08249

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for housingLibrary_5508-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 31a1652f34964b5ab24db7fc590796c348606e360f40c71ac8a7fa90b9580b7d
MD5 55423483bb178e3e064ba00e694b5422
BLAKE2b-256 b2930f41a81804725fd1cb082368017cbffb96af6157d38ce5bc7ed328924273

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