View Source Kino.Bumblebee.ScoredList (KinoBumblebee v0.5.0)
A kino for displaying a list of labels with scores.
This kino is primarily used to present top classification predictions.
Examples
predictions = [
{"france", 0.9279842972755432},
{"brittany", 0.008412551134824753},
{"algeria", 0.007433671969920397},
{"department", 0.004957548808306456},
{"reunion", 0.004369721747934818}
]
KinoBumblebee.ScoredList.new(predictions)
Summary
Functions
Creates a new kino displaying the given list of items.
Types
@type t() :: Kino.JS.t()
Functions
Creates a new kino displaying the given list of items.
Expects a list of tuples, each element being the label and its score.