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