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.

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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: housing_library_5496-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_library_5496-0.1.tar.gz
Algorithm Hash digest
SHA256 56e2740b6bdd3ea3272b85803926b79f054bc09306a737947ef3365d18a198dc
MD5 1f22cb76de1d1d8d8677c71433aebd0c
BLAKE2b-256 d2b010d9e85926c70a7a2c477116b37ff1ff3eda9948f5a884ab854309712522

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for housing_library_5496-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 26e61d4a69103b9badf1b0bc656d5864e56730a4c95b3321a54807a81a9acc42
MD5 d04dbe7b67d37f487852cfedf2cdbf26
BLAKE2b-256 519a4694e28103a2d04ca3537e2263b5be226ee0b7200fc54e3bf9c7a38a819a

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