-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathutils.py
51 lines (40 loc) · 2.09 KB
/
utils.py
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
import streamlit as st
feature_descriptions = """
1. **Age**: Age of employee
2. **Attrition**: Employee attrition status
3. **Department**: Department of work
4. **DistanceFromHome**: what is their distance from hime
5. **Education**: 1-Below College; 2- College; 3-Bachelor; 4-Master; 5-Doctor;
6. **EducationField**: The field they studies in in the University
7. **EnvironmentSatisfaction**: 1-Low; 2-Medium; 3-High; 4-Very High;
8. **JobSatisfaction**: 1-Low; 2-Medium; 3-High; 4-Very High;
9. **MaritalStatus**: Whether they are married, single or divorced
10. **MonthlyIncome**: How much an employee makes a month
11. **NumCompaniesWorked**: Number of companies worked prior to IBM
12. **WorkLifeBalance**: 1-Bad; 2-Good; 3-Better; 4-Best;
13. **YearsAtCompany**: Current years of service in IBM
"""
column_1 = """
### Attrition Insight
Attrition Insight is a Machine Learning application that predicts the likelihood of an employee to leave the company based on various demographic and job-related factors.
### Key Features
- **View Data:** Access proprietory data from IBM.
- **Dashboard:** Explore interactive data visualizations for insights.
- **Real-time Prediction:** Instantly see predictions for employee attrition.
- **History:** See past predictions made.
### User Benefits
- **Data-driven Decisions:** Make informed decisions backed by data analytics.
- **Easy Machine Learning:** Utilize powerful machine learning algorithms effortlessly.
- **Live Demo:** Watch a demo video to see the app in action.
[Watch Demo Video](link)
"""
column_2 = """
### Machine Learning Integration
- **Model Selection:** Choose between two advanced models for accurate predictions.
- **Seamless Integration:** Integrate predictions into your workflow with a user-friendly interface.
- **Probability Estimates:** Gain insights into the likelihood of predicted outcomes.
### Need Help?
For collaborations contact me at [hello@rachealappiahkubi.com](mailto:hello@rachealappiahkubi.com).
"""
#Build command
# mkdir .streamlit; cp /etc/secrets/secrets.toml ./.streamlit/; pip install --upgrade pip && pip install -r requirements.txt