Skip to content

Commit

Permalink
Merge pull request #8 from lapix-ufsc/improve_metrics_models
Browse files Browse the repository at this point in the history
Improve metrics models
  • Loading branch information
Andrevmatias authored Jan 3, 2022
2 parents f471dfe + c4646d1 commit 5944f5b
Show file tree
Hide file tree
Showing 5 changed files with 190 additions and 56 deletions.
6 changes: 3 additions & 3 deletions lapixdl/evaluation/evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def evaluate_segmentation(gt_masks: Iterable[Mask],

metrics = SegmentationMetrics(classes, confusion_matrix)

print(metrics)
print(metrics.to_dataframe())

return metrics

Expand Down Expand Up @@ -83,7 +83,7 @@ def evaluate_classification(gt_classifications: Iterable[Classification],

metrics = ClassificationMetrics(classes, confusion_matrix)

print(metrics)
print(metrics.to_dataframe())

return metrics

Expand Down Expand Up @@ -174,7 +174,7 @@ def evaluate_detection(gt_bboxes: Iterable[List[BBox]],
cls_ious_sum / tot_images,
predictions_by_class)

print(metrics)
print(metrics.to_dataframe())

return metrics

Expand Down
Loading

0 comments on commit 5944f5b

Please sign in to comment.