Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bsenst/housing-germany
Machine learning project based on the Kaggle "Apartment rental offers in Germany" dataset for the Data Talks Club Machine Learning Zoomcamp 2023.
https://github.com/bsenst/housing-germany
datatalksclub flask germany housing-prices midterm-project streamlit zoomcamp
Last synced: 26 days ago
JSON representation
Machine learning project based on the Kaggle "Apartment rental offers in Germany" dataset for the Data Talks Club Machine Learning Zoomcamp 2023.
- Host: GitHub
- URL: https://github.com/bsenst/housing-germany
- Owner: bsenst
- License: apache-2.0
- Created: 2023-10-25T05:07:00.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-29T12:24:19.000Z (about 1 year ago)
- Last Synced: 2024-03-18T00:51:33.748Z (8 months ago)
- Topics: datatalksclub, flask, germany, housing-prices, midterm-project, streamlit, zoomcamp
- Language: Jupyter Notebook
- Homepage: https://housing-germany.streamlit.app/
- Size: 144 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# housing-germany
Machine learning project for the [Data Talks Club Machine Learning Zoomcamp](https://github.com/DataTalksClub/machine-learning-zoomcamp) 2023.# Problem Description
The real estate market in Germany is dynamic and influenced by various factors such as location, property type, size, amenities, and economic conditions. Accurately predicting rental prices is crucial for both property owners and potential tenants to make informed decisions. In this context, developing a reliable machine learning model to predict housing rent prices in Germany becomes paramount.The objective of this project is to build a predictive model that can estimate the monthly rent for residential properties in Germany based on selected features.
# Instructions## Dependency Management
```
pip install -r requirements.txt
```## Dataset
> CorrieBar. (2019, October). Apartment rental offers in Germany, Version 6. Retrieved October 28, 2023 from https://www.kaggle.com/datasets/corrieaar/apartment-rental-offers-in-germanyTo download the dataset follow the instructions on https://www.kaggle.com/docs/api
```
kaggle datasets download -d corrieaar/apartment-rental-offers-in-germany
unzip apartment-rental-offers-in-germany.zip
```## Explore Data (EDA) & Train Optimized Model with Notebook
Open the `housing-eda.ipynb` notebook.
## Run Model Training Script
```
python scripts/train.py
```## Test Model Prediction Script
```
python scripts/predict.py
```# Model Deployment
## Run App
```
python flask app/flask_app.py
``````
streamlit run app/streamlit_app.py
```## Run Containerized App with Docker
```
docker build -t model_server .
docker run -p 5000:5000 -p 8501:8501 model_server
```## Streamlit Cloud Deployed
Visit the live app at [housing-germany.streamlit.app](https://www.streamlit.io)