forked from yashasvini121/predictive-calc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.py
107 lines (95 loc) · 4.96 KB
/
App.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
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
import streamlit as st
st.set_page_config(page_title="Predictive Calc - Machine Learning Models", page_icon="🤖")
st.title("Welcome to Predictive Calc!")
st.image('machine-learning.gif', caption='Your Hub for Predictive Insights', use_column_width=True)
st.markdown("""
## Explore Cutting-edge Machine Learning Models
**Predictive Calc** offers a powerful suite of machine learning models designed to assist you in making informed decisions. Whether it's predicting house prices, determining loan eligibility, or evaluating health risks, we have you covered.
""")
st.markdown("""
## Why Choose Predictive Calc?
- **Accurate Predictions**: Leverage state-of-the-art algorithms for highly accurate predictions.
- **User-friendly Interface**: Seamlessly interact with models tailored for real-world applications.
- **Comprehensive Calculators**: A collection of models designed for diverse decision-making needs.
- **Health & Financial Models**: Predict house prices, assess loan eligibility, and evaluate health risks such as Parkinson's and stress levels.
""")
st.markdown("---")
st.markdown("**Ready to get started?** Select a calculator from the sidebar to begin your predictive journey!")
st.markdown("---")
# List of available calculators
st.subheader("Available Calculators:")
st.write(
"- **Customer Income Estimation**: Estimate the annual income of a person based on socio-economic and demographic information."
)
st.write(
"- **House Price Prediction**: Estimate the price of a house based on various features."
)
st.write("- **Loan Eligibility**: Check your eligibility for different types of loans.")
st.write(
"- **Stress Level Detector**: Analyze your mental stress levels based on social media interactions."
)
st.write(
"- **Parkinson's Disease Detector**: Assess your risk of Parkinson's Disease with advanced machine learning algorithms."
)
st.write(
"- **Cervical Cancer Predictor**: Evaluate your risk of cervical cancer based on medical factors and risk indicators."
)
# Parkinson's Disease Detector Section
with st.expander("Parkinson's Disease Detector - More Information"):
st.subheader("Introduction")
st.write(
"""
Parkinson's disease (PD) is a progressive neurodegenerative disorder that primarily affects movement. It often starts with subtle symptoms such as tremors, stiffness, and slow movement.
"""
)
# Dataset section
st.subheader("Oxford Parkinson's Disease Detection Dataset (UCI ML Repository)")
st.write(
"""
The dataset contains biomedical voice measurements from 31 people, 23 of whom have Parkinson's disease (PD). The main goal is to differentiate between healthy individuals and those with PD using the "status" column, where 0 indicates healthy and 1 indicates PD.
"""
)
# Input features section
st.subheader("Additional Variable Information")
st.write(
"""
- **MDVP_Fo(Hz)**: Average vocal fundamental frequency.
- **MDVP_Fhi(Hz)**: Maximum vocal fundamental frequency.
- **MDVP_Flo(Hz)**: Minimum vocal fundamental frequency.
- **MDVP_Jitter(%)**, **MDVP_Jitter(Abs)**, **MDVP_RAP**, **MDVP_PPQ**, **Jitter_DDP**: Measures of variation in fundamental frequency.
- **MDVP_Shimmer**, **MDVP_Shimmer(dB)**, **Shimmer_APQ3**, **Shimmer_APQ5**, **MDVP_APQ**, **Shimmer_DDA**: Measures of variation in amplitude.
- **NHR**, **HNR**: Noise-to-tonal ratio measures in the voice.
- **status**: Health status of the subject (1 - Parkinson's, 0 - healthy).
- **RPDE**, **D2**: Nonlinear dynamical complexity measures.
- **DFA**: Signal fractal scaling exponent.
- **spread1**, **spread2**, **PPE**: Nonlinear measures of fundamental frequency variation.
"""
)
# Cervical Cancer Predictor Section
with st.expander("Cervical Cancer Predictor - More Information"):
st.subheader("Introduction")
st.write(
"""
Cervical cancer is a preventable disease that occurs in the cervix. Early detection through screening and risk assessment can significantly reduce mortality rates. This model assesses the risk of cervical cancer based on various health factors.
"""
)
# Dataset section
st.subheader("Cervical Cancer Dataset")
st.write(
"""
The dataset contains risk factors associated with cervical cancer and is used to predict the likelihood of developing the disease. The target variable indicates whether a subject has cancer (1) or not (0).
"""
)
# Input features section
st.subheader("Input Features")
st.write(
"""
- **Smokes**: Indicator of whether the individual smokes (0 - No, 1 - Yes).
- **Hormonal Contraceptives**: Use of hormonal contraceptives (0 - No, 1 - Yes).
- **IUD**: Use of an intrauterine device (0 - No, 1 - Yes).
- **STDs**: Presence of sexually transmitted diseases (0 - No, 1 - Yes).
- **Age**: Age of the individual.
- **Number of sexual partners**: Total number of sexual partners.
- **Dx**: Diagnosis (1 - Cancer, 0 - No Cancer).
"""
)