Sebastian Nausester commited on
Commit
fc251a8
·
1 Parent(s): f2f4d3a

app.py updated

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -13,9 +13,10 @@ def predict(gender, bmi, asthma, glucose, pulse):
13
  if asthma is True:
14
  asthma_val = 1
15
 
 
16
  pred_data = {
17
  "id": 0,
18
- "rcount": train_data['rcount'].mean(),
19
  "gender": gender_char,
20
  "dialysisrenalendstage": False,
21
  "asthma": asthma_val,
@@ -30,13 +31,13 @@ def predict(gender, bmi, asthma, glucose, pulse):
30
  "hemo": False,
31
  "hematocrit": False,
32
  "neutrophils": False,
33
- "sodium": train_data['sodium'].mean(),
34
  "glucose": glucose,
35
- "bloodureanitro": train_data['bloodureanitro'].mean(),
36
- "creatinine": train_data['creatinine'].mean(),
37
  "bmi": bmi,
38
  "pulse": pulse,
39
- "respiration": train_data['respiration'].mean(),
40
  "secondarydiagnosisnonicd9": 0,
41
  "facid": 0
42
  }
 
13
  if asthma is True:
14
  asthma_val = 1
15
 
16
+ # Hardcoded Values are the mean of the training_data.csv
17
  pred_data = {
18
  "id": 0,
19
+ "rcount": 1.1178,
20
  "gender": gender_char,
21
  "dialysisrenalendstage": False,
22
  "asthma": asthma_val,
 
31
  "hemo": False,
32
  "hematocrit": False,
33
  "neutrophils": False,
34
+ "sodium": 137.89369109187714,
35
  "glucose": glucose,
36
+ "bloodureanitro": 14.101120748294186,
37
+ "creatinine": 1.0994443932147715,
38
  "bmi": bmi,
39
  "pulse": pulse,
40
+ "respiration": 6.491511666666584,
41
  "secondarydiagnosisnonicd9": 0,
42
  "facid": 0
43
  }