Spaces:
Sleeping
Sleeping
Update my_model/tabs/dataset_analysis.py
Browse files
my_model/tabs/dataset_analysis.py
CHANGED
|
@@ -300,18 +300,17 @@ def run_dataset_analyzer():
|
|
| 300 |
st.write("\n" * 10)
|
| 301 |
st.markdown("## OK-VQA Dataset")
|
| 302 |
st.write("This model was fine-tuned and evaluated using OK-VQA dataset.\n")
|
| 303 |
-
col1, col2, col3 = st.columns([2, 5, 5])
|
| 304 |
|
| 305 |
-
with
|
| 306 |
st.markdown("#### OK-VQA Dataset Characteristics")
|
| 307 |
st.write(okvqa_dataset_characteristics)
|
| 308 |
-
with
|
| 309 |
df = pd.read_excel(config.DATASET_ANALYSES_PATH, sheet_name="Question Category Dist")
|
| 310 |
st.markdown("#### Questions Distribution over Knowledge Category")
|
| 311 |
dataset_analyzer.plot_bar_chart(df, "Knowledge Category", "Percentage", "Questions Distribution over "
|
| 312 |
"Knowledge Category")
|
| 313 |
|
| 314 |
-
with
|
| 315 |
|
| 316 |
#with st.expander("Distribution of Question Keywords"):
|
| 317 |
dataset_analyzer.categorize_questions()
|
|
|
|
| 300 |
st.write("\n" * 10)
|
| 301 |
st.markdown("## OK-VQA Dataset")
|
| 302 |
st.write("This model was fine-tuned and evaluated using OK-VQA dataset.\n")
|
|
|
|
| 303 |
|
| 304 |
+
with st.expander("OK-VQA Dataset Characteristics"):
|
| 305 |
st.markdown("#### OK-VQA Dataset Characteristics")
|
| 306 |
st.write(okvqa_dataset_characteristics)
|
| 307 |
+
with st.expander("Questions Distribution over Knowledge Category"):
|
| 308 |
df = pd.read_excel(config.DATASET_ANALYSES_PATH, sheet_name="Question Category Dist")
|
| 309 |
st.markdown("#### Questions Distribution over Knowledge Category")
|
| 310 |
dataset_analyzer.plot_bar_chart(df, "Knowledge Category", "Percentage", "Questions Distribution over "
|
| 311 |
"Knowledge Category")
|
| 312 |
|
| 313 |
+
with st.expander("Distribution of Question Keywords"):
|
| 314 |
|
| 315 |
#with st.expander("Distribution of Question Keywords"):
|
| 316 |
dataset_analyzer.categorize_questions()
|