Skip to content

make ap@k jittable #59

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

Merged
merged 2 commits into from
Apr 3, 2025
Merged

make ap@k jittable #59

merged 2 commits into from
Apr 3, 2025

Conversation

jshin1394
Copy link
Collaborator

This PR makes AP@K jittable. However, it removes an optimization which used to slice the given label/prediction by the maximum k. Slicing a matrix makes the function impure. I think this is a fair tradeoff. Please let me know if you think otherwise! :)

@jshin1394 jshin1394 requested a review from jeffcarp April 3, 2025 21:45
Copy link
Collaborator

@jeffcarp jeffcarp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for documenting the clear tradeoff. This way sounds good, and we can keep our eyes open for any user feedback.

OUTPUT_LABELS_VS1,
OUTPUT_PREDS_VS1,
MAP_FROM_KERAS_VS1,
),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this test is mostly the same could it be combined with the above and add another parameterized option for whether to jit or not?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

modified accordingly.

@jeffcarp jeffcarp merged commit c40c5a0 into main Apr 3, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants