-
Notifications
You must be signed in to change notification settings - Fork 595
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix recall sweep computation. #5472
Conversation
WalkthroughThe pull request updates the Changes
Sequence Diagram(s)sequenceDiagram
participant Caller as Evaluation Routine
participant Curve as _compute_pr_curves
participant Rec as rec array
participant Sweep as recall_sweep
Caller->>Curve: Invoke evaluation process
Curve->>Rec: Compute recall values
alt Rec is non-empty
Curve->>Sweep: Assign last element of rec (rec[-1])
else Rec is empty
Curve->>Sweep: Skip assignment to avoid error
end
Poem
Tip 🌐 Web search-backed reviews and chat
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@manushreegangwar can you please confirm this is how we should handle empty recall? |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #5472 +/- ##
===========================================
- Coverage 99.20% 99.19% -0.01%
===========================================
Files 54 54
Lines 18635 18655 +20
===========================================
+ Hits 18486 18505 +19
- Misses 149 150 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for catching and fixing this!
@brimoor Please see #5472 (comment) |
Co-authored-by: manushreegangwar <[email protected]>
What changes are proposed in this pull request?
Check for recall array emptiness before assigning to recall_sweep variable.
How is this patch tested? If it is not, please explain why.
Tested
_compute_pr_curves()
locally with generated input args.Release Notes
Is this a user-facing change that should be mentioned in the release notes?
notes for FiftyOne users.
Fix exception on _compute_pr_curves when recall value does not exist.
What areas of FiftyOne does this PR affect?
fiftyone
Python library changesSummary by CodeRabbit