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

Throw exception when event time is negative #410

Merged
merged 1 commit into from Oct 1, 2023
Merged

Throw exception when event time is negative #410

merged 1 commit into from Oct 1, 2023

Conversation

sebp
Copy link
Owner

@sebp sebp commented Oct 1, 2023

Checklist

What does this implement/fix? Explain your changes
Checks that observed event times are non-negative before fitting an estimator.

@codecov
Copy link

codecov bot commented Oct 1, 2023

Codecov Report

All modified lines are covered by tests ✅

Files Coverage Δ
sksurv/svm/survival_svm.py 99.23% <100.00%> (-0.01%) ⬇️
sksurv/util.py 100.00% <100.00%> (ø)

📢 Thoughts on this report? Let us know!.

@sebp sebp merged commit 06bd970 into master Oct 1, 2023
29 checks passed
@sebp sebp deleted the fix-406 branch October 1, 2023 15:40
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.

Fit does not throw exception if negative event times are passed
1 participant