Prediction metrics
prediction_metrics
¶
Functions¶
compute_and_show_cf(pred_labels, gt_labels, labels=None, use_labels_from='both', vis=True, cf_plot_savefile=None, cf_np_savefile=None)
¶
summary
Parameters:
Name | Type | Description | Default |
---|---|---|---|
pred_labels |
list
|
description |
required |
gt_labels |
list
|
description |
required |
labels |
Union[None, List[str]]
|
description. Defaults to None. |
None
|
use_labels_from |
str
|
description. Defaults to "both". |
'both'
|
vis |
bool
|
description. Defaults to True. |
True
|
cf_plot_savefile |
Union[None, PATH_TYPE]
|
description. Defaults to None. |
None
|
cf_np_savefile |
Union[None, PATH_TYPE]
|
description. Defaults to None. |
None
|
Raises:
Type | Description |
---|---|
ValueError
|
description |
Returns:
Name | Type | Description |
---|---|---|
_type_ |
description |