userselection
userselection ¶
Module for user selection dashboard component
Classes¶
Functions¶
get_user_selection ¶
get_user_selection(
selection_info,
component_key=None,
class_label="Class",
prob_label="Probability",
data_identifier_options=None,
data_identifier_label="Data identifier",
data_identifier_hint=None,
)
Returns the users dashboard selection for specific values from a SelectionInfo. It creates the UI elements for selecting a class and probability value. It also allows users to select data points by their identifier (e.g., text).
Parameters:
-
selection_info
(SelectionInfo
) –Information about the classes, min/max probability values and identifiers in the dataset
-
component_key
(Optional[str]
, default:None
) –Key to uniquely identify and update the component
-
class_label
(str
, default:'Class'
) –Label of the select box
-
prob_label
(str
, default:'Probability'
) –Label for the probability slider
-
data_identifier_options
(Optional[List[str]]
, default:None
) –List of data identifiers
-
data_identifier_label
(str
, default:'Data identifier'
) –Label of the data identifier input
-
data_identifier_hint
(Optional[str]
, default:None
) –Hint provided to the user for selection of 'data_identifier_options'
Returns:
-
Selection
–Selection object with user selection