File tree Expand file tree Collapse file tree 1 file changed +10
-16
lines changed Expand file tree Collapse file tree 1 file changed +10
-16
lines changed Original file line number Diff line number Diff line change 361361
362362 (define safe-locations (or locations '() )) ;; Fallback to empty list if locations is #f
363363
364- (append
365- (list
366- `(tr
367- (td (code ,(~a op)))
368- (td (code ,(~a expr)))
369- (td (b ,(~a expl)))
370- (td ,(~a cnt))
371- (td ,(~a mcnt))
372- ;; Handle locations: Iterate over each location's inner lists and create a row for each
373- (for/list ([location-list (in-list safe-locations)])
374- ;; Handle each location in the inner list
375- (for/list ([location (in-list location-list)])
376- `(tr (td "↳ " ) (td "Location " ) (td ,(~a location)) (td "" ))))
377- (for/list ([flow (in-list (or flows '() ))])
378- (match-define (list ex type v) flow)
379- `(tr (td "↳ " ) (td (code ,(~a ex))) (td ,type) (td ,(~a v))))))))))))))
364+ (append (list `(tr (td (code ,(~a op)))
365+ (td (code ,(~a expr)))
366+ (td (b ,(~a expl)))
367+ (td ,(~a cnt))
368+ (td ,(~a mcnt))
369+ (td ,(~a locations)))
370+ (for/list ([flow (in-list (or flows '() ))])
371+ (match-define (list ex type v) flow)
372+ `(tr (td "↳ " ) (td (code ,(~a ex))) (td ,type) (td ,(~a v)))))))))))))
373+
380374
381375(define (render-phase-confusion confusion-matrix)
382376 (match-define (list (list true-pos false-neg false-pos true-neg)) confusion-matrix)
You can’t perform that action at this time.
0 commit comments