陈俊杰
commited on
Commit
·
774b2bc
1
Parent(s):
a4c2338
cjj-data
Browse files
app.py
CHANGED
|
@@ -39,7 +39,7 @@ DG = {
|
|
| 39 |
"kendall's tau": [0.3243, 0.1739, 0.3042, 0.4167],
|
| 40 |
"spearman": [0.3505, 0.1857, 0.3264, 0.4512]
|
| 41 |
}
|
| 42 |
-
df1 = pd.DataFrame(DG)
|
| 43 |
|
| 44 |
TE = {
|
| 45 |
"methods": ["chatglm3-6b", "baichuan2-13b", "chatglm-pro", "gpt-4o-mini"],
|
|
@@ -48,7 +48,7 @@ TE = {
|
|
| 48 |
"kendall's tau": [0.1281, 0.0635, 0.2716, 0.3864],
|
| 49 |
"spearman": [0.1352, 0.0667, 0.2867, 0.4157]
|
| 50 |
}
|
| 51 |
-
df2 = pd.DataFrame(TE)
|
| 52 |
|
| 53 |
SG = {
|
| 54 |
"methods": ["chatglm3-6b", "baichuan2-13b", "chatglm-pro", "gpt-4o-mini"],
|
|
@@ -57,7 +57,7 @@ SG = {
|
|
| 57 |
"kendall's tau": [0.3957, 0.2688, 0.5092, 0.5001],
|
| 58 |
"spearman": [0.4188, 0.2817, 0.5403, 0.5405],
|
| 59 |
}
|
| 60 |
-
df3 = pd.DataFrame(SG)
|
| 61 |
|
| 62 |
NFQA = {
|
| 63 |
"methods": ["chatglm3-6b", "baichuan2-13b", "chatglm-pro", "gpt-4o-mini"],
|
|
@@ -66,7 +66,7 @@ NFQA = {
|
|
| 66 |
"kendall's tau": [0.2332, 0.2389, 0.4440, 0.4235],
|
| 67 |
"spearman": [0.2443, 0.2492, 0.4630, 0.4511]
|
| 68 |
}
|
| 69 |
-
df4 = pd.DataFrame(NFQA)
|
| 70 |
|
| 71 |
# 创建标签页
|
| 72 |
tab1, tab2, tab3, tab4 = st.tabs(["DG", "TE", "SG", "NFQA"])
|
|
|
|
| 39 |
"kendall's tau": [0.3243, 0.1739, 0.3042, 0.4167],
|
| 40 |
"spearman": [0.3505, 0.1857, 0.3264, 0.4512]
|
| 41 |
}
|
| 42 |
+
df1 = pd.DataFrame(DG).applymap(lambda x: f"{x:.4f}")
|
| 43 |
|
| 44 |
TE = {
|
| 45 |
"methods": ["chatglm3-6b", "baichuan2-13b", "chatglm-pro", "gpt-4o-mini"],
|
|
|
|
| 48 |
"kendall's tau": [0.1281, 0.0635, 0.2716, 0.3864],
|
| 49 |
"spearman": [0.1352, 0.0667, 0.2867, 0.4157]
|
| 50 |
}
|
| 51 |
+
df2 = pd.DataFrame(TE).applymap(lambda x: f"{x:.4f}")
|
| 52 |
|
| 53 |
SG = {
|
| 54 |
"methods": ["chatglm3-6b", "baichuan2-13b", "chatglm-pro", "gpt-4o-mini"],
|
|
|
|
| 57 |
"kendall's tau": [0.3957, 0.2688, 0.5092, 0.5001],
|
| 58 |
"spearman": [0.4188, 0.2817, 0.5403, 0.5405],
|
| 59 |
}
|
| 60 |
+
df3 = pd.DataFrame(SG).applymap(lambda x: f"{x:.4f}")
|
| 61 |
|
| 62 |
NFQA = {
|
| 63 |
"methods": ["chatglm3-6b", "baichuan2-13b", "chatglm-pro", "gpt-4o-mini"],
|
|
|
|
| 66 |
"kendall's tau": [0.2332, 0.2389, 0.4440, 0.4235],
|
| 67 |
"spearman": [0.2443, 0.2492, 0.4630, 0.4511]
|
| 68 |
}
|
| 69 |
+
df4 = pd.DataFrame(NFQA).applymap(lambda x: f"{x:.4f}")
|
| 70 |
|
| 71 |
# 创建标签页
|
| 72 |
tab1, tab2, tab3, tab4 = st.tabs(["DG", "TE", "SG", "NFQA"])
|