Plexus.Reduce (Plexus v0.1.0)

Copy Markdown View Source

Population reducers for explicit run answers.

Summary

Functions

collect(run_id, mapper)

@spec collect(term(), (term(), map() -> term())) :: [term()]

one(run_id, class, score_fun)

@spec one(term(), term(), (map() -> term())) :: {term(), map()} | nil

top_k(run_id, class, k, score_fun)

@spec top_k(term(), term(), non_neg_integer(), (map() -> term())) :: [{term(), map()}]