Spaces:
Sleeping
Sleeping
Create Hotel Data Card.py
Browse files- Hotel Data Card.py +34 -0
Hotel Data Card.py
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
import pandas as pd
|
| 3 |
+
import numpy as np
|
| 4 |
+
|
| 5 |
+
st.title('''
|
| 6 |
+
π¨ Hotel Data Analysis & π€ Machine Learning: Predicting Customer Preferences and Optimizing Pricing π
|
| 7 |
+
''')
|
| 8 |
+
st.markdown('''
|
| 9 |
+
|
| 10 |
+
π¨ **Hotel Data Analysis and Machine Learning Project**
|
| 11 |
+
|
| 12 |
+
π **Data Exploration and Preprocessing**:
|
| 13 |
+
- π§Ή Cleaning and preparing data by handling missing values, encoding categorical features like *"category"* and *"location,"* and normalizing numerical data such as *"price"* and *"rating."*
|
| 14 |
+
- π Analyzing trends in **customer reviews**, **cashback offers**, **discounts**, and **free services** to identify influential factors.
|
| 15 |
+
|
| 16 |
+
π€ **Predictive Modeling**:
|
| 17 |
+
- π― **Target Variable**: Predicting key metrics like *price category*, *likelihood of cancellation*, or *hotel ratings.*
|
| 18 |
+
- π οΈ **Model Selection**: Building ML models such as **Decision Trees**, **Random Forests**, or **Gradient Boosting** for classification or regression tasks.
|
| 19 |
+
- π‘ **Feature Engineering**: Extracting insights from **review text** (via text sentiment analysis) or **free services** (binary encoding).
|
| 20 |
+
|
| 21 |
+
π **Model Evaluation**:
|
| 22 |
+
- π Comparing model performance using metrics like **accuracy**, **F1 score**, or **RMSE**, depending on the task.
|
| 23 |
+
- βοΈ Employing techniques like **hyperparameter tuning** and **cross-validation** for optimization.
|
| 24 |
+
|
| 25 |
+
πΌ **Insights and Deployment**:
|
| 26 |
+
- π Unveiling actionable insights from **feature importance** to guide hotel marketing and pricing strategies.
|
| 27 |
+
- π Deploying the model in a user-friendly interface to support stakeholders in making real-time decisions.
|
| 28 |
+
|
| 29 |
+
By integrating π§ **machine learning** with π **data analysis**, this project empowers hotel businesses to enhance customer satisfaction, optimize pricing strategies, and maximize profitability.
|
| 30 |
+
|
| 31 |
+
---
|
| 32 |
+
|
| 33 |
+
Let me know if this works or needs further edits! π
|
| 34 |
+
''')
|