Skip to content

Output optimal confidence threshold based on PR curve #2048

@decent-engineer-decent-datascientist

Description

🚀 Feature

Could we print out the maximum F1 score and the associated confidence threshold at the end of training?

Motivation

This is something that should be done for every custom model, and the data is readily available after the final mAP calculations, and PR curve drawing.

Pitch

Filter detections at different score/confident thresholds, calculate P/R/F1, and then print the optimal threshold (max f1).

Alternatives

Instead of printing max PR, maybe write a csv in the run directory, containing metrics at different thresholds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions