zysnathan commited on
Commit
3bbbf31
1 Parent(s): 282ee28

Update model.py

Browse files
Files changed (1) hide show
  1. model.py +1 -0
model.py CHANGED
@@ -19,6 +19,7 @@ import warnings
19
  warnings.filterwarnings('ignore')
20
  def PAN(Age,ALT,AST,BUN,DBP,INR,Lactate,SpO2,Temperature,WBC,Sepsis,CRRT,MV):
21
  x = np.array([Age,ALT,AST,BUN,DBP,INR,Lactate,SpO2,Temperature,WBC,Sepsis,CRRT,MV])
 
22
  prediction = method.predict_proba(x.reshape(1, -1))[:,1]
23
  return prediction
24
  outputs = gr.outputs.Textbox(label='Death Probability')
 
19
  warnings.filterwarnings('ignore')
20
  def PAN(Age,ALT,AST,BUN,DBP,INR,Lactate,SpO2,Temperature,WBC,Sepsis,CRRT,MV):
21
  x = np.array([Age,ALT,AST,BUN,DBP,INR,Lactate,SpO2,Temperature,WBC,Sepsis,CRRT,MV])
22
+ x = sc.transform(x)
23
  prediction = method.predict_proba(x.reshape(1, -1))[:,1]
24
  return prediction
25
  outputs = gr.outputs.Textbox(label='Death Probability')