Skip to content

Commit

Permalink
Add example images for metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
LinasKo committed Nov 7, 2024
1 parent 2084f57 commit 4ed05e7
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions supervision/metrics/f1_score.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ class F1Score(Metric):
print(f1_result.f1_50)
print(f1_result.small_objects.f1_50)
```
![example_plot](\
https://media.roboflow.com/supervision-docs/metrics/f1_plot_example.png\
){ align=center width="800" }
"""

def __init__(
Expand Down
4 changes: 4 additions & 0 deletions supervision/metrics/mean_average_precision.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ class MeanAveragePrecision(Metric):
print(map_result.map50_95)
map_result.plot()
```
![example_plot](\
https://media.roboflow.com/supervision-docs/metrics/mAP_plot_example.png\
){ align=center width="800" }
"""

def __init__(
Expand Down
4 changes: 4 additions & 0 deletions supervision/metrics/precision.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ class Precision(Metric):
print(precision_result.precision_at_50)
print(precision_result.small_objects.precision_at_50)
```
![example_plot](\
https://media.roboflow.com/supervision-docs/metrics/precision_plot_example.png\
){ align=center width="800" }
"""

def __init__(
Expand Down
4 changes: 4 additions & 0 deletions supervision/metrics/recall.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ class Recall(Metric):
print(recall_result.recall_at_50)
print(recall_result.small_objects.recall_at_50)
```
![example_plot](\
https://media.roboflow.com/supervision-docs/metrics/recall_plot_example.png\
){ align=center width="800" }
"""

def __init__(
Expand Down

0 comments on commit 4ed05e7

Please sign in to comment.