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: Downcast time points passed to brier_score #349

Merged
merged 1 commit into from
Apr 2, 2023
Merged

FIX: Downcast time points passed to brier_score #349

merged 1 commit into from
Apr 2, 2023

Conversation

sebp
Copy link
Owner

@sebp sebp commented Apr 2, 2023

Checklist

What does this implement/fix? Explain your changes
If times is a float array and survival times are ints, a downcast of float to int can result in loss of information. Keep the original dtype instead.

If `times` is a float array and survival times are ints,
a downcast of float to int can result in loss of information.
Keep the original dtype instead.

Closes #317
@codecov
Copy link

codecov bot commented Apr 2, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (d82e9be) 97.88% compared to head (93d0c24) 97.88%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #349   +/-   ##
=======================================
  Coverage   97.88%   97.88%           
=======================================
  Files          37       37           
  Lines        3308     3308           
  Branches      451      451           
=======================================
  Hits         3238     3238           
  Misses         33       33           
  Partials       37       37           
Impacted Files Coverage Δ
sksurv/metrics.py 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@sebp sebp merged commit 139fd84 into master Apr 2, 2023
@sebp sebp deleted the fix/317 branch April 2, 2023 15:18
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.

integrated_brier_score() - ValueError: expected estimate with ... columns, but got ...
1 participant