Skip to content

Commit 7d957b8

Browse files
committed
Switch to geometric mean
1 parent a5a57f0 commit 7d957b8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/datafile.rkt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,16 @@
6363
(define initial-cost* (exact->inexact initial-cost))
6464
(for/list ([point (in-list (list* initial-point best-point other-points))])
6565
(match-define (list cost accuracy _ ...) point)
66-
(list (/ cost initial-cost*) accuracy))))
66+
;(list (/ cost initial-cost*) accuracy))))
67+
(list (log (/ cost initial-cost*)) accuracy))))
6768
(define frontier
6869
(map
6970
(match-lambda
7071
[(list cost accuracy)
7172
(list
7273
;; Equivalent to (/ 1 (/ cost tests-length))
73-
(/ 1 (/ cost tests-length))
74+
;(/ 1 (/ cost tests-length))
75+
(/ 1 (exp (/ cost tests-length)))
7476
(- 1 (/ accuracy maximum-accuracy)))])
7577
(pareto-combine rescaled #:convex? #t)))
7678
(define maximum-cost

0 commit comments

Comments
 (0)