fadyabila commited on
Commit
a06c495
1 Parent(s): 94e937d

submission

Browse files
Files changed (1) hide show
  1. eda.py +14 -18
eda.py CHANGED
@@ -22,19 +22,17 @@ def run():
22
 
23
  # Menambahkan Deskripsi
24
  st.write('## Background')
25
- '''
26
- Hepatitis C is a very dangerous and contagious disease, which is caused by the Hepatitis C virus (HCV).
27
- Transmission of Hepatitis C can be through body fluids, blood, or when having sex with sufferers.
28
- Usually, the symptoms of Hepatitis C are not visible, so suddenly the sufferer or patient has experienced the chronic stage of hepatitis.
29
- Hepatitis C can also trigger the onset of fibrosis which causes cirrhosis and liver cancer.
30
 
31
- Therefore, the Liver Hospital must have adequate facilities and treatment to treat patients with indications and symptoms of Hepatitis C.
32
- The purpose of this data classification analysis and modeling is to find out what the diagnoses are in patients so that they receive further treatment, can be cured, and minimize death.
33
- This modeling uses 4 Machine Learning (Supervised) algorithms, namely Logistic Regression, Support Vector Machine, Random Forest, and Gradient Boosting to get the best predictions with hyperparameter tuning.
34
- '''
35
 
36
  st.write('## Dataset')
37
- '''
38
  The dataset is from Kaggle, that have 615 rows and 14 columns.
39
  This column contains information that have a correlation with Hepatitis C disease, such as:
40
  1. Bilirubin
@@ -43,9 +41,8 @@ def run():
43
  4. Alanine transaminase (ALT): ALT is an enzyme found in the liver that helps convert proteins into energy for the liver cells. When the liver is damaged, ALT is released into the bloodstream and levels increase.
44
  5. Aspartate transaminase(AST): AST is an enzyme that helps metabolize amino acids. Like ALT, AST is normally present in blood at low levels. An increase in AST levels may indicate liver damage, disease or muscle damage.
45
  6. Alkaline phosphatase (ALP): ALP is an enzyme found in the liver and bone and is important for breaking down proteins. Higher-than-normal levels of ALP may indicate liver damage or disease, such as a blocked bile duct, or certain bone diseases.
46
- 7. Albumin and total protein:: Albumin is one of several proteins made in the liver. Your body needs these proteins to fight infections and to perform other functions. Lower-than-normal levels of albumin and total protein may indicate liver damage or disease.
47
- 8. Gamma-glutamyltransferase (GGT): GGT is an enzyme in the blood. Higher-than-normal levels may indicate liver or bile duct damage.
48
- '''
49
 
50
  # Membuat Garis Lurus
51
  st.markdown('---')
@@ -54,11 +51,10 @@ def run():
54
  st.subheader('EDA for Analyze Patients')
55
 
56
  # Magic Syntax
57
- '''
58
- On this page, the author will do a simple exploration.
59
- The dataset used is the Hepatitis C dataset.
60
- This dataset comes from Kaggle.
61
- '''
62
 
63
  # Show DataFrame
64
  df1 = pd.read_csv('HepatitisCdata.csv')
 
22
 
23
  # Menambahkan Deskripsi
24
  st.write('## Background')
25
+ st.write('Hepatitis C is a very dangerous and contagious disease, which is caused by the Hepatitis C virus (HCV).'
26
+ ' Transmission of Hepatitis C can be through body fluids, blood, or when having sex with sufferers.'
27
+ ' Usually, the symptoms of Hepatitis C are not visible, so suddenly the sufferer or patient has experienced the chronic stage of hepatitis.'
28
+ ' Hepatitis C can also trigger the onset of fibrosis which causes cirrhosis and liver cancer.'
 
29
 
30
+ ' Therefore, the Liver Hospital must have adequate facilities and treatment to treat patients with indications and symptoms of Hepatitis C.'
31
+ ' The purpose of this data classification analysis and modeling is to find out what the diagnoses are in patients so that they receive further treatment, can be cured, and minimize death.'
32
+ ' This modeling uses 4 Machine Learning (Supervised) algorithms, namely Logistic Regression, Support Vector Machine, Random Forest, and Gradient Boosting to get the best predictions with hyperparameter tuning.')
 
33
 
34
  st.write('## Dataset')
35
+ st.write("""
36
  The dataset is from Kaggle, that have 615 rows and 14 columns.
37
  This column contains information that have a correlation with Hepatitis C disease, such as:
38
  1. Bilirubin
 
41
  4. Alanine transaminase (ALT): ALT is an enzyme found in the liver that helps convert proteins into energy for the liver cells. When the liver is damaged, ALT is released into the bloodstream and levels increase.
42
  5. Aspartate transaminase(AST): AST is an enzyme that helps metabolize amino acids. Like ALT, AST is normally present in blood at low levels. An increase in AST levels may indicate liver damage, disease or muscle damage.
43
  6. Alkaline phosphatase (ALP): ALP is an enzyme found in the liver and bone and is important for breaking down proteins. Higher-than-normal levels of ALP may indicate liver damage or disease, such as a blocked bile duct, or certain bone diseases.
44
+ 7. Albumin and total protein: Albumin is one of several proteins made in the liver. Your body needs these proteins to fight infections and to perform other functions. Lower-than-normal levels of albumin and total protein may indicate liver damage or disease.
45
+ 8. Gamma-glutamyltransferase (GGT): GGT is an enzyme in the blood. Higher-than-normal levels may indicate liver or bile duct damage.""")
 
46
 
47
  # Membuat Garis Lurus
48
  st.markdown('---')
 
51
  st.subheader('EDA for Analyze Patients')
52
 
53
  # Magic Syntax
54
+ st.write(
55
+ 'On this page, the author will do a simple exploration.'
56
+ ' The dataset used is the Hepatitis C dataset.'
57
+ ' This dataset comes from Kaggle.')
 
58
 
59
  # Show DataFrame
60
  df1 = pd.read_csv('HepatitisCdata.csv')