Spaces:
Running on Zero
Running on Zero
Commit 路
adaf2db
1
Parent(s): c5021ff
Align the confusion matrix with the training history chart
Browse filesMove the confusion matrix title out of its framed box into the same
section heading the training history uses, so both panels in the top
row of the Results page start at the same height.
app.py
CHANGED
|
@@ -662,8 +662,7 @@ def train_workspace(
|
|
| 662 |
importance = pathway_importance(bundle).head(100)
|
| 663 |
architecture_audit = _architecture_audit(bundle)
|
| 664 |
confusion_html = ui.blueprint_div(
|
| 665 |
-
|
| 666 |
-
+ ui.confusion_matrix_html(result.confusion.tolist(), bundle.label_names)
|
| 667 |
)
|
| 668 |
|
| 669 |
run_meta_update = {
|
|
@@ -1385,6 +1384,7 @@ with gr.Blocks(title="BioLM-NET Workbench", fill_width=True) as demo:
|
|
| 1385 |
gr.HTML('<div class="mono sect">Training history</div>')
|
| 1386 |
results_loss_plot = gr.Plot(show_label=False)
|
| 1387 |
with gr.Column(scale=6, min_width=0):
|
|
|
|
| 1388 |
results_confusion = gr.HTML("")
|
| 1389 |
with gr.Row(elem_classes=["results-grid"], equal_height=False):
|
| 1390 |
with gr.Column(scale=6, min_width=0):
|
|
|
|
| 662 |
importance = pathway_importance(bundle).head(100)
|
| 663 |
architecture_audit = _architecture_audit(bundle)
|
| 664 |
confusion_html = ui.blueprint_div(
|
| 665 |
+
ui.confusion_matrix_html(result.confusion.tolist(), bundle.label_names)
|
|
|
|
| 666 |
)
|
| 667 |
|
| 668 |
run_meta_update = {
|
|
|
|
| 1384 |
gr.HTML('<div class="mono sect">Training history</div>')
|
| 1385 |
results_loss_plot = gr.Plot(show_label=False)
|
| 1386 |
with gr.Column(scale=6, min_width=0):
|
| 1387 |
+
gr.HTML('<div class="mono sect">Confusion matrix 路 validation split</div>')
|
| 1388 |
results_confusion = gr.HTML("")
|
| 1389 |
with gr.Row(elem_classes=["results-grid"], equal_height=False):
|
| 1390 |
with gr.Column(scale=6, min_width=0):
|