Spaces:
Configuration error
Configuration error
File size: 684 Bytes
5b07bd4 |
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 |
import torch
import streamlit as st
from PIL import Image
st.latex(r'''
Accuracy = \left(\frac{TP +TN}{TN + TN + FP + FN}\right)
''')
st.latex(r'''
Precision = \frac{TP}{TP + FP}
''')
st.latex(r'''
Recall (SE) = \frac{TP}{TP + FN}
''')
st.latex(r'''
SP = \frac{TN}{TN + FP}
''')
st.latex(r'''
Weighted \ Accuracy = \frac{SE + SP}{2}
''')
st.latex(r'''
MCC = \frac{TP \times TN - FN \times FP}{\sqrt{(TP + FP)(TP + FN)(TN + FN) (TN + FP)}}
''')
image = Image.open('table.png')
st.image(image, caption='Table: Results of test set in JAK1, JAK2, JAK3 and TYK2', output_format='png', width=1000, use_column_width='never')
|