@@ -134,22 +134,22 @@ def confusion_matrix(info: RowInfo):
134134 header_style = cell_style + "font-weight:600;background:#f7f7f7;"
135135 return html .div (
136136 html .div ("Confusion Matrix" , style = "font-weight:600;margin-bottom:8px;" ),
137- html .table (
138- html .thead (html .tr (
139- html .th ("" , style = header_style ),
140- html .th ("Observed +" , style = header_style ),
141- html .th ("Observed -" , style = header_style ),
137+ html .tags . table (
138+ html .tags . thead (html . tags .tr (
139+ html .tags . th ("" , style = header_style ),
140+ html .tags . th ("Observed +" , style = header_style ),
141+ html .tags . th ("Observed -" , style = header_style ),
142142 )),
143- html .tbody (
144- html .tr (
145- html .th ("Predicted +" , style = label_style ),
146- html .td (str (data [i , "true_positives" ]), style = cell_style ),
147- html .td (str (data [i , "false_positives" ]), style = cell_style ),
143+ html .tags . tbody (
144+ html .tags . tr (
145+ html .tags . th ("Predicted +" , style = label_style ),
146+ html .tags . td (str (data [i , "true_positives" ]), style = cell_style ),
147+ html .tags . td (str (data [i , "false_positives" ]), style = cell_style ),
148148 ),
149- html .tr (
150- html .th ("Predicted -" , style = label_style ),
151- html .td (str (data [i , "false_negatives" ]), style = cell_style ),
152- html .td (str (data [i , "true_negatives" ]), style = cell_style ),
149+ html .tags . tr (
150+ html .tags . th ("Predicted -" , style = label_style ),
151+ html .tags . td (str (data [i , "false_negatives" ]), style = cell_style ),
152+ html .tags . td (str (data [i , "true_negatives" ]), style = cell_style ),
153153 ),
154154 ),
155155 style = "border-collapse:collapse;min-width:420px;background:white;" ,
0 commit comments