Spaces:
Configuration error
Configuration error
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') | |