Skip to main content

A package for predicting housing prices using machine learning models

Project description

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 nonstandardcode.py

Installation

  1. Clone the repository:
git clone https://github.com/yourusername/your-repo-name.git
cd your-repo-name

2. Setup conda environment

conda env create -f env.yaml

3. Activate the environment

conda activate myenv

4. Install the package

pip install -e .

Run tests - pytest tests/

5. Running the Code
## Running the Code

1. **Ingest Data:**

- Use the `ingest_data.py` script to download and create training and validation datasets.

```bash
python src/your_package/ingest_data.py --output ./data

2. Run the train.py script to train your model. 

python src/your_package/train.py --input ./data --output ./artifacts

3. Score the Model:

python src/your_package/score.py --model ./artifacts --data ./data --output ./results

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

housing_price_prediction_NR-0.1.0-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file housing_price_prediction_NR-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for housing_price_prediction_NR-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2199a8454b1840bf4b7998116c0783a4bcf7baff7e335e4dff9bdab40af92c2c
MD5 dbffa00a7ddf9bc5c9af2a6c5b12302e
BLAKE2b-256 b16fc335399e4ac90bc0241a2b0ecb4eab06b9cee6ef29d8f7ff5a5be183babf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page