Skip to content
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 tp&fp calc error #1848

Merged
merged 3 commits into from
Jan 18, 2025
Merged

Conversation

oslijunw
Copy link
Contributor

#1796 Compatibility is being fixed due to different sample trigger points

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jan 15, 2025
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. and removed size:XS This PR changes 0-9 lines, ignoring generated files. labels Jan 15, 2025
Comment on lines 259 to 264

response_reference = np.array(response_reference, dtype=bool)
tp = sum(reference_response)
fp = sum(~reference_response)
if self.mode != "precision":
response_reference = np.array(response_reference, dtype=bool)
fn = sum(~response_reference)
Copy link
Member

Choose a reason for hiding this comment

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

@shahules786 can you check this part?

Copy link
Member

Choose a reason for hiding this comment

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

yes, this looks better.

Copy link
Member

@jjmachan jjmachan left a comment

Choose a reason for hiding this comment

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

the other parts look good - thanks a lot @oslijunw for taking the time to fix this ❤️ 🙂

@jjmachan jjmachan requested a review from shahules786 January 18, 2025 01:36
@jjmachan jjmachan merged commit 5ce585c into explodinggradients:main Jan 18, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants