Sample code for coding practice
Project description
Median housing value prediction
The housing data can be downloaded from https://github.com/ageron/handson-ml/blob/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. -performed the tests
##sklearn pypi acount recreation -added the functional tests and unit tests -performed test_training and tets_installation tests in functional testings -performed test_data_ingestion test in unit testing
To excute the script
python src/score.py
##To Excute the distribution file unzip dist/housing_library_5515-0.1-py3-none-any.whl -d wheel_contents cd wheel_contents python3 house_price_prediction/score.py
##To activate the environment conda activate mle-dev ##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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file housing_library_5515-0.2.tar.gz
.
File metadata
- Download URL: housing_library_5515-0.2.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2400c68397e02f8c9ecb4c5417ed35fbc3764d452b5ffc640d6d8a018cdd210 |
|
MD5 | 0c1f86eef41484bf394768623021784c |
|
BLAKE2b-256 | 7869e1a8fffb3d3dbf42c680ffa8a148dc1ac2e70d1e70be0b927153d86733fe |
File details
Details for the file housing_library_5515-0.2-py3-none-any.whl
.
File metadata
- Download URL: housing_library_5515-0.2-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cdb067607f14975304a063cd8f929ab955b8eceee179c9d870f0934de2ac8d4d |
|
MD5 | ee422efd5d2388630bba854ef101fe2e |
|
BLAKE2b-256 | 7b1f751696c5a1d0baabbe1bb7f3bb513eb90df0b559423dc7cbedd3daf5bce6 |