F4RUKYLDRM commited on
Commit
adaf2db
路
1 Parent(s): c5021ff

Align the confusion matrix with the training history chart

Browse files

Move 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.

Files changed (1) hide show
  1. app.py +2 -2
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
- f'<div class="mono" style="margin-bottom:12px">Confusion matrix 路 validation split</div>'
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):