Web Based House Rent Project
Web Based House Visualization and Recommendation Project, Seattle, WA 09/ 2019 β 12/2019
Web Based House Visualization and Recommendation
Project proview
Millions of hosts and travelers choose to list their space and book unique accommodations anywhere in the world. Hosts could share their passions and interests with both travelers and locals by renting their houses and travelers could experience local culture and traditions deeply. Travelers need to know the local environment and reviews of their potential accommodations, such as the location, safety and grade. For landlord, they expect to get a reasonable and competitive price before they poll accommodations online. As a web-based marketplace, this tool will be helpful to both travelers and landlords in dealing with their accommodations.
Data Source:
The following Airbnb activity is included in this Seattle dataset:
- Listings, including full descriptions and average review score, 4 columns
- Reviews, including unique id for each reviewer and detailed comments, 92 columns
- Calendar, including listing id and the price and availability for that day, 6 columnsAfter selecting, the dataset review was deleted to 38 columns. (from https://www.kaggle.com/airbnb/seattle#reviews.csv)
Directory Tree
housingrecommendation
ββ .gitignore
ββ .travis.yml
ββ LICENSE
ββ README.md
ββ docs
β ββ Component Specification.md
β ββ Functional Specification.md
β ββ technology_review.pdf
ββ example
β ββ House-Prices.ipynb
β ββ folium_demo.ipynb
ββ house_rec
β ββ __init__.py
β ββ code
β β ββ htmlserver
β β ββ views
β ββ data
β β ββ calendar.csv
β β ββ listings.csv
β β ββ reviews.csv
β ββ tests
β ββ test_cleaned_data.py
β ββ test_datahandle.py
ββ requirment.txt
ββ setup.py
Use Cases
Use case 1
Detailed listing information on map view
Database with listing information and location User interface that allows users to select area Map view that allows users to visualize all rooms location in this area
Use case 2
Recommend top 10 rooms for customers
Database with guestsβ review scores User interface that allows users to input the info about the room User interface that allows users to select the order of recommendations Map view that allows users to visualize the recommendationsβ location
Use case 3
Recommend room price for landlord
Database with price of houses around it User interface that allows users to input the info about the room to improve the accuracy of predicted price Map view that allows users to visualize all houses or the similar rooms around it.
Instruction for setup
Application is running on Flask framework, so users need to install corresponding module in advance.
-
run requirements.txt to ensure all dependencies exist : pip install -r requirements.txt
-
Install following otehr package
pip3 install flask pip3 install geojson pip3 install pandas pip3 install numpy pip3 install json pip3 install requests pip3 install sklearn
-
clone the repo:
git clone https://github.com/adonis-wyc/housingrecommendation.git
-
Go to htmlserver foler:
cd housingrecommendation/code/htmlserver
-
run backend server in flask
flask run
-
type http://127.0.0.1:5000/ in the browser