-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* PyUpgrade 3.8 updates * Auto-format by https://ultralytics.com/actions --------- Co-authored-by: UltralyticsAssistant <[email protected]>
- Loading branch information
1 parent
fc83ab9
commit ae4cd98
Showing
4 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -339,7 +339,7 @@ def plot_pr_curve(px, py, ap, save_dir=Path("pr_curve.png"), names=()): | |
else: | ||
ax.plot(px, py, linewidth=1, color="grey") # plot(recall, precision) | ||
|
||
ax.plot(px, py.mean(1), linewidth=3, color="blue", label="all classes %.3f [email protected]" % ap[:, 0].mean()) | ||
ax.plot(px, py.mean(1), linewidth=3, color="blue", label=f"all classes {ap[:, 0].mean():.3f} [email protected]") | ||
ax.set_xlabel("Recall") | ||
ax.set_ylabel("Precision") | ||
ax.set_xlim(0, 1) | ||
|