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 Create a conda environment from new_env.yml file

conda env create -f new_env.yml

To activate the created environment

conda activate mle-dev

To excute the script

python nonstandardcode.py

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

Uploaded Source

Built Distribution

housing_library_5495-0.1-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for housing_library_5495-0.1.tar.gz
Algorithm Hash digest
SHA256 02039ba2d1bb9239e2ae9dec09f004296bb33f3949df4cd9b44e16f41f29bdbf
MD5 92401c5ba5f0bf151eaa9666f424af1b
BLAKE2b-256 1f688bfdd0ef39859af6036d3741ec0c8dd8ae05c9fd713def5227bb171d71c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for housing_library_5495-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 14d46856e1db29497367fce26799764d9560c64c88da6c6b1f7667816ee2042b
MD5 780cd98bfbd504f5d7e9df16d3208a53
BLAKE2b-256 2ae4777245dad6bd2b65fea5ca55bffc29fc4d06cd6897e36807752779f747ac

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