-
Notifications
You must be signed in to change notification settings - Fork 830
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
fix tp&fp calc error #1848
Conversation
|
||
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) |
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.
@shahules786 can you check this part?
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.
yes, this looks better.
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.
the other parts look good - thanks a lot @oslijunw for taking the time to fix this ❤️ 🙂
#1796 Compatibility is being fixed due to different sample trigger points