probcomp/curve-fitting

Turn opacity-scale into a multimethod that dispatches on mode

オープン

#53 opened on 2018/11/27

 (0 件のコメント) (0 件のリアクション) (1 人の担当者)Clojure (3 件のフォーク)auto 404
good first issuerefactor

Repository metrics

Stars
 (3 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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.

コントリビューターガイド