MatchDatasets
Last updated
Last updated
MatchDatasets
widget in Supervisely allows users to compare datasets by matching objects and displaying the results in a table. It also provides the comparison results in the form of a dictionary grouped into matched
, unique_left
, and unique_right
categories. This widget helps users identify differences and similarities between datasets quickly and efficiently.
left_datasets
List[DatasetInfo]
List of NamedTuple
, containing information about left datasets
right_datasets
List[DatasetInfo]
List of NamedTuple
, containing information about right datasets
left_name
str
Left part datasets name
right_name
str
Right part datasets name
widget_id
str
ID of the widget
Determine information about left datasets.
type: List[DatasetInfo]
default value: None
Determine information about right datasets.
type: List[DatasetInfo]
default value: None
Determine left part datasets name.
type: str
default value: None
Determine right part datasets name.
type: str
default value: None
ID of the widget.
type: str
default value: None
set(left_datasets: List[DatasetInfo] = None, right_datasets: List[DatasetInfo] = None, left_name=None, right_name=None)
Set DatasetInfo
data in left and right part of widget.
get_stat()
Return datasets match statistics.
You can find this example in our Github repository:
ui-widgets-demos/compare data/001_match_datasets/src/main.py
First, we load environment variables with credentials and init API for communicating with Supervisely Instance:
MatchDatasets
widgetPrepare a layout for app using Card
widget with the content
parameter and place widget that we've just created in the Container
widget.
Create an app object with layout parameter.