Link Search Menu Expand Document

Top-1 Top-5

Table of contents

analyze_top1_top5_error()

It analyzes the model performances by considering the top-1 and the top-5 classification predictions. The analysis can be performed for the entire data set or for a subset with a specific property value.

Parameters

properties

list, optional
If not specified, it performs the analysis on the entire data set, otherwise it performs a per-property analysis.
(default is None)
metric

Metrics, optional
Evaluation metric used for the analysis.
(default is Metrics.ERROR_RATE)
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 AnalyzerClassification

my_analyzer = AnalyzerClassification("my_classifier_name", my_classification_dataset)
my_analyzer.analyze_top1_top5_error()

analyze_top_output_a

from odin.classes import AnalyzerClassification

my_analyzer = AnalyzerClassification("my_classifier_name", my_classification_dataset)
my_analyzer.analyze_top1_top5_error(properties=['prop1'])

analyze_top_output_b


Tasks supported

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