Spaces:
Runtime error
Runtime error
important nodes list
Browse files
pages/1_Disentanglement.py
CHANGED
@@ -100,10 +100,10 @@ smoothgrad_col_1, smoothgrad_col_2, smoothgrad_col_3, smoothgrad_col_4, smoothgr
|
|
100 |
|
101 |
# ---------------------------- DISPLAY COL 1 ROW 1 ------------------------------
|
102 |
with output_col_1:
|
103 |
-
separation_vector, number_important_features = get_separation_space(concept_id, annotations, ann_df)
|
104 |
# st.write(f'Class ID {input_id} - {input_label}: {pred_prob*100:.3f}% confidence')
|
105 |
st.write('Concept vector', separation_vector)
|
106 |
-
header_col_1.write(f'Concept {concept_id} - Number of relevant nodes: {number_important_features}')
|
107 |
|
108 |
# ----------------------------- INPUT column 2 & 3 ----------------------------
|
109 |
with input_col_2:
|
|
|
100 |
|
101 |
# ---------------------------- DISPLAY COL 1 ROW 1 ------------------------------
|
102 |
with output_col_1:
|
103 |
+
separation_vector, number_important_features, imp_nodes = get_separation_space(concept_id, annotations, ann_df)
|
104 |
# st.write(f'Class ID {input_id} - {input_label}: {pred_prob*100:.3f}% confidence')
|
105 |
st.write('Concept vector', separation_vector)
|
106 |
+
header_col_1.write(f'Concept {concept_id} - Number of relevant nodes: {number_important_features} - Nodes {",".join(list(imp_nodes))}')
|
107 |
|
108 |
# ----------------------------- INPUT column 2 & 3 ----------------------------
|
109 |
with input_col_2:
|