ποΈ New York City Airbnb ML & Analytics Web App
An end-to-end Machine Learning web application designed to evaluate and predict New York City Airbnb listing attributes. The repository combines exploratory data analysis, a robust Scikit-Learn preprocessing pipeline (RandomizedSearchCV), and a custom Web Frontend interface deployed on Render.
Next-Generation Vocal Acoustic Analytics for Emergency Triage Scoring
πΌοΈ Application Preview
πΌοΈ Application Preview & UI
π Live Application
The application is hosted live on Render. You can test it directly here:
π Click Here to Launch Render Live Demo
π Model Benchmarks & Metrics
Multiple baseline models were trained and tuned using hyperparameter optimization. Random Forest yielded the highest performance metrics across the board:
| Model Algorithm | Accuracy Score | F1-Score | Status |
|---|---|---|---|
| Random Forest Classifier π | 0.851 (85.1%) | 0.713 | Selected Model |
| Gradient Boosting Classifier | 0.850 (85.0%) | 0.706 | High Precision |
| Decision Tree Classifier | 0.786 (78.6%) | 0.655 | Baseline |
| Logistic Regression | 0.726 (72.6%) | 0.575 | Baseline |
βοΈ Model Pipeline & Architecture
The machine learning core uses a unified ColumnTransformer integrated into a Scikit-Learn Pipeline tuned with RandomizedSearchCV:
- Numerical Preprocessing:
SimpleImputerβPowerTransformerβStandardScaler - Categorical Preprocessing:
SimpleImputerβOneHotEncoder - Final Estimator:
RandomForestClassifier
π Repository Structure
βββ AB_NYC_2019.csv # NYC Airbnb Dataset
βββ .gitignore # Git Ignore File
βββ .gitattributes # Git Attributes File
βββ requirements.txt # Python Dependencies
βββ runtime.txt # Python Runtime Version
βββ notebook.ipynb # Analysis, Pipeline Design & Model Training
βββ main.py # Backend Server Script (API/Inference)
βββ Model_Pipeline.pkl # Serialized Scikit-Learn Pipeline
βββ index.html # Frontend Web Interface UI
βββ style.css # Custom Application Stylesheet
βββ script.js # Frontend Interactivity & API Fetching
βββ the_build_line_guide.html # Pipeline & Application Guide Documentation
βββ UI.png # Application UI Preview
βββ readme.md # Project Documentation
βββ New_York_City_.png # Application Banner / Asset
git clone https://github.com/amirsohail100/New-York-City-Airbnb-ML-Analytics-Web-App.git
cd New-York-City-Airbnb-ML-Analytics-Web-App
streamlit run app.py
pip install -r requirements.txt
π License
This project is licensed under the MIT License.
π Author
π€ Amir Sohail
NYC Airbnb Machine Learning pipeline evaluating listings using Random Forest (85.1% accuracy) with ColumnTransformer preprocessing. Features a web UI (HTML/CSS/JS + FastAPI/Flask main server) & serialized pipeline inference.
Evaluation results
- Accuracy Score on NYC Airbnb Open Data 2019self-reported0.851
- F1 Score on NYC Airbnb Open Data 2019self-reported0.713

