Skip to content

A Label Indicator #3020

Open
Open
@MarcSkovMadsen

Description

@MarcSkovMadsen

A very common visualization (in machine learning) is Labelling/ Classification.

I would propose adding an indicator that makes it easy to display their classification results. Something like.

image

and with an api something like

class Label(pn.reactive.ReactiveHTML):
    """The ClassificationPlot provides plots of the output of a classification, i.e. the *labels*
    and their *score*."""

    value = param.Dict(
        doc="""
    The output of a classification""",)
    color = param.Color(
        ACCENT_COLOR,
        """
    The color of the bars of the plot""",
    )
    theme = param.Selector(
        default="default",
        objects=["default", "dark"],
        constant=True,
        doc="""
    The theme of the plot. Either 'default' or 'dark'""",
    )
    top = param.Integer(
        5,
        bounds=(1, None),
        doc="""
    Displays the top number of elements
    """,
    )

Inspiration: https://gradio.app/docs/#o_label

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions