probcomp/curve-fitting

Turn opacity-scale into a multimethod that dispatches on mode

Offen

#53 geöffnet am 27.11.2018

 (0 Kommentare) (0 Reaktionen) (1 zugewiesene Person)Clojure (3 Forks)auto 404
good first issuerefactor

Repository-Metriken

Stars
 (3 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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.

Contributor Guide