probcomp/curve-fitting

Turn opacity-scale into a multimethod that dispatches on mode

開放

#53 建立於 2018年11月27日

 (0 則留言) (0 個反應) (1 位負責人)Clojure (3 個分叉)auto 404
good first issuerefactor

倉庫指標

星標
 (3 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

Currently we switch between opacity scales like so:

(let [make-opacity-scale (case mode
                           :resampling resampling/make-opacity-scale
                           :prior prior/make-opacity-scale)
      opacity-scale (make-opacity-scale (map :log-score curves))])

Instead we should define a multimethod curve-fitting.core/opacity-scale (or maybe curve-fitting.sketches/opacity-scale that takes two arguments: The mode and the log scores.

貢獻者指南