Skip to main content

Sample code for coding practice

Project description

mle-training

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

python < scriptname.py >

Command to create Virtual Enviornemnt:

conda --version conda create --name mle-dev biopython conda activate mle-dev

install the necessary librabries like numpy,pandas , matplotlib and scikit learn

conda install numpy conda install pandas conda install matplotlib

To excute the script

python < scriptname.py > python nonstandardcode.py

Exporting the enviorment

conda export --name MLE-training >env.yml

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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for housing_traning_5519-0.1.tar.gz
Algorithm Hash digest
SHA256 3a95772e344f770ecef14d1a961d0112b13605fca9799c232d704e9e602cbe32
MD5 8fb933e24ffe59edce3b82eb6f2ba934
BLAKE2b-256 53ffeaf8463b1e7e2c4c8339c1f27b15bc5861091372ad5ad5a4433f39f57735

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for housing_traning_5519-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4fc226ecbcfeb667b62af9cd3d4d1fd78775e8baf0f87b61e498b3a8d1f0230a
MD5 e9bff6b154a8ab6f76b9a5d24035ebcb
BLAKE2b-256 898ce69c89969c4744871d0292ad1723eef0de58f658a6e2b5ede28a3010e0b2

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