File size: 4,300 Bytes
24a5594
8b82037
 
639fdc9
24a5594
a401b6b
24a5594
122798a
24a5594
ca6e43d
 
d8e0bfd
ca6e43d
 
ee2de30
8b82037
551e2dd
ee2de30
8b82037
 
24a5594
ee2de30
8b82037
 
 
24a5594
ee2de30
8b82037
 
24a5594
ee2de30
8b82037
 
24a5594
ee2de30
8b82037
24a5594
ee2de30
 
 
 
73eb50e
 
a401b6b
73eb50e
6caf5ab
73eb50e
 
 
 
 
f442fb7
 
d8e0bfd
 
f442fb7
73eb50e
6caf5ab
 
 
 
 
 
 
 
 
 
 
 
d8e0bfd
 
 
 
 
 
 
 
6caf5ab
3d74bd6
d8e0bfd
6caf5ab
73eb50e
 
 
 
6989568
d26865e
551e2dd
5753bbf
8fdeba3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
import streamlit as st
import pandas as pd
import numpy as np


  
st.markdown("""
    <h1 style="text-align:center; color: #FF4500;">Hotel Data Analysis & Machine Learning</h1>
""", unsafe_allow_html=True)
st.markdown(
    """
    <img src="https://cdn-uploads.huggingface.co/production/uploads/675fab3a2d0851e23d23cad3/8O1ZKtL2Fy7LM4wXzjtjE.jpeg" width="100%" />
    """, 
    unsafe_allow_html=True
)
st.markdown("""
### Predicting Customer Preferences and Optimizing Pricing:
##### πŸ“Š Data Exploration and Preprocessing:
- <span style="font-size:20px;">Cleaning and preparing data by handling missing values, encoding categorical features like *"category"* and *"location,"* and normalizing numerical data such as *"price"* and *"rating."*</span>
- <span style="font-size:20px;">Analyzing trends in **customer reviews**, **cashback offers**, **discounts**, and **free services** to identify influential factors.

##### πŸ€– Predictive Modeling:
- <span style="font-size:20px;">**Target Variable**: Predicting key metrics like *price category*, *likelihood of cancellation*, or *hotel ratings.*</span>
- <span style="font-size:20px;">**Model Selection**: Building ML models such as **Decision Trees**, **Random Forests**, or **Gradient Boosting** for classification or regression tasks.</span>
- <span style="font-size:20px;">**Feature Engineering**: Extracting insights from **review text** (via text sentiment analysis) or **free services** (binary encoding).</span>

##### πŸ“ˆ Model Evaluation:
- <span style="font-size:20px;">Comparing model performance using metrics like **accuracy**, **F1 score**, or **RMSE**, depending on the task.</span>
- <span style="font-size:20px;">Employing techniques like **hyperparameter tuning** and **cross-validation** for optimization.</span>

##### πŸ’Ό Insights and Deployment:
- <span style="font-size:20px;">Unveiling actionable insights from **feature importance** to guide hotel marketing and pricing strategies.</span>
- <span style="font-size:20px;">Deploying the model in a user-friendly interface to support stakeholders in making real-time decisions.</span>

##### By integrating **machine learning** with **data analysis**, this project empowers hotel businesses to enhance customer satisfaction, optimize pricing strategies, and maximize profitability.
""", unsafe_allow_html=True)

# # Display an image from a file
st.subheader("Hotel Data Analysis Model Creation Flow")
st.markdown("![Beige Neutral Flowchart Graph Template.gif](https://cdn-uploads.huggingface.co/production/uploads/675fab3a2d0851e23d23cad3/owTdXfE7l7CdXQPSaAqBX.gif)")


# Define the URL of the background image (use your own image URL)
background_image_url = "https://cdn-uploads.huggingface.co/production/uploads/675fab3a2d0851e23d23cad3/vulm4WwHmmA14tsVXYaTM.jpeg"

# Apply custom CSS for the background image and overlay
st.markdown(
    f"""
    <style>
        .stApp {{
            background-image: url("{background_image_url}");
            background-size: auto;  /* Ensure the image width is 100% of the screen, and the height scales proportionally */
            background-repeat: repeat;  /* Repeat only vertically */
            background-position: top center;  /* Start repeating from the top center */
            background-attachment: fixed;  /* Keeps the background fixed as you scroll */
            height: 100%;
        }}
        
        /* Semi-transparent overlay */
        .stApp::before {{
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.4);  /* Adjust transparency here (0.4 for 40% transparency) */
            z-index: -1;
        }}
        
        /* Container to center elements and limit width */
        .content-container {{
            max-width: 70%;  /* Limit content width to 70% */
            margin: 0 auto;  /* Center the container */
            padding: 50px;  /* Add some padding for spacing */
        }}
        /* Styling the markdown content */
        .stMarkdown {{
            color: white;  /* White text to ensure visibility */
            font-size: 100px;  /* Adjust font size for readability */
        }}
    </style>
    """, 
    unsafe_allow_html=True
)