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