Link Search Menu Expand Document

Distributions

Table of contents

show_co_occurrence_matrix()

It provides the co-occurrence matrix of the categories.

Parameters

show

bool, optional
Indicates whether the plot should be shown or not. If False, returns the matrix.
(default is True)

Example

Classification

from odin.classes import DatasetClassification

my_dataset = DatasetClassification(dataset_gt_param, classification_type)
my_dataset.show_co_occurrence_matrix()

Localization

from odin.classes import DatasetLocalization

my_dataset = DatasetLocalization(dataset_gt_param, localization_type)
my_dataset.show_co_occurrence_matrix()

show_co_occurrence_matrix_output


Tasks supported

Binary Classification Single-label Classification Multi-label Classification Object Detection Instance Segmentation
no no yes yes yes

show_distribution_of_property()

It provides the distribution of the different values of a property and for each value shows the distribution of the categories.

Parameters

property_name

str
Name of the property to be analyzed.
property_values

list, optional
List of categories to be included in the analysis. If not specified, all the categories are included.
(default is None)
show

bool, optional
Indicates whether the plot should be shown or not. If False, returns the results as dict.
(default is True)

Example

Classification

from odin.classes import DatasetClassification

my_dataset = DatasetClassification(dataset_gt_param, classification_type)
my_dataset.show_distribution_of_property('prop1')

Localization

from odin.classes import DatasetLocalization

my_dataset = DatasetLocalization(dataset_gt_param, localization_type)
my_dataset.show_distribution_of_property('prop1')

show_distribution_of_properties_output show_distribution_of_properties_output show_distribution_of_properties_output


Tasks supported

Binary Classification Single-label Classification Multi-label Classification Object Detection Instance Segmentation
yes yes yes yes yes

show_distribution_of_properties()

For each property, it provides the distribution of its different values and for each value shows the distribution of the categories.

Parameters

properties

list, optional
List of properties to be included in the analysis. If not specified, all the properties are included.
(default is None)
show

bool, optional
Indicates whether the plot should be shown or not. If False, returns the results as dict.
(default is True)

Example

Classification

from odin.classes import DatasetClassification

my_dataset = DatasetClassification(dataset_gt_param, classification_type)
my_dataset.show_distribution_of_properties()

Localization

from odin.classes import DatasetLocalization

my_dataset = DatasetLocalization(dataset_gt_param, localization_type)
my_dataset.show_distribution_of_properties()

show_distribution_of_properties_output show_distribution_of_properties_output show_distribution_of_properties_output


Tasks supported

Binary Classification Single-label Classification Multi-label Classification Object Detection Instance Segmentation
yes yes yes yes yes

show_distribution_of_property_for_category()

It provides the distribution of a property for a specific category.

Parameters

property_name

str
Name of the property to be analyzed.
category

str
Name of the category to be analyzed.
property_values

list, optional
List of categories to be included in the analysis. If not specified, all the categories are included.
(default is None)
show

bool, optional
Indicates whether the plot should be shown or not. If False, returns the results as dict.
(default is True)

Example

Classification

from odin.classes import DatasetClassification

my_dataset = DatasetClassification(dataset_gt_param, classification_type)
my_dataset.show_distribution_of_property_for_category('prop1', 'catA')

Localization

from odin.classes import DatasetLocalization

my_dataset = DatasetLocalization(dataset_gt_param, localization_type)
my_dataset.show_distribution_of_property_for_category('prop1', 'catA')

show_distribution_of_properties_output


Tasks supported

Binary Classification Single-label Classification Multi-label Classification Object Detection Instance Segmentation
yes yes yes yes yes

show_distribution_of_property_for_categories()

For each category, it provides the distribution of a property.

Parameters

property_name

str
Name of the property to be analyzed.
property_values

list, optional
List of categories to be included in the analysis. If not specified, all the categories are included.
(default is None)
categories

list, optional
List of categories to be included in the analysis. If not specified, all the categories are included.
(default is None)
show

bool, optional
Indicates whether the plot should be shown or not. If False, returns the results as dict.
(default is True)

Example

Classification

from odin.classes import DatasetClassification

my_dataset = DatasetClassification(dataset_gt_param, classification_type)
my_dataset.show_distribution_of_property_for_categories('prop1')

Localization

from odin.classes import DatasetLocalization

my_dataset = DatasetLocalization(dataset_gt_param, localization_type)
my_dataset.show_distribution_of_property_for_categories('prop1')

show_distribution_of_properties_output show_distribution_of_properties_output


Tasks supported

Binary Classification Single-label Classification Multi-label Classification Object Detection Instance Segmentation
yes yes yes yes yes

show_distribution_of_categories()

It provides the distribution of the categories in the data set.

Parameters

show_avg_size

bool, optional
Indicates whether to calculate the average size of the area of the annotations. It is supported only for localization tasks.
(default is True)
show

bool, optional
Indicates whether the plot should be shown or not. If False, returns the results as dict.
(default is True)

Example

Classification

from odin.classes import DatasetClassification

my_dataset = DatasetClassification(dataset_gt_param, classification_type)
my_dataset.show_distribution_of_categories()

show_distribution_of_categories_output

Localization

from odin.classes import DatasetLocalization

my_dataset = DatasetLocalization(dataset_gt_param, localization_type)
my_dataset.show_distribution_of_categories()

show_distribution_of_categories_output


Tasks supported

Binary Classification Single-label Classification Multi-label Classification Object Detection Instance Segmentation
yes yes yes yes yes