-
-
Notifications
You must be signed in to change notification settings - Fork 20
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 measure bottlenecks #337
Merged
Merged
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
c953f32
fix measure bottlenecks
RaphaelS1 54561e2
filter distribution prediction objects
bblodfon f0e6dfb
fix small issues when filtering predictions + add more tests
bblodfon c3ad102
small fix
bblodfon 1634967
fix bugs in RCLL when distr is of array type
bblodfon ca01473
update RCLL tests
bblodfon 97e1c79
fixing subsetting issue (another edge case)
bblodfon 3f52b61
small doc fix
bblodfon c2d31f8
small refactoring
bblodfon 9423416
small comment fix
bblodfon 4171edd
better doc for dcalib
bblodfon 5a720ed
remove unnecessary transpose
bblodfon b61ded8
add tests for dcalib
bblodfon 3288df5
bug fixes
bblodfon a14aff2
add truncate parameter
bblodfon 48b29ea
update doc
bblodfon 148387f
fix dcalib test + add truncate test
bblodfon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@bblodfon can you tell me what's happening here?
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.
I was trying to filter
Distribution
objects (like the prediction object fromsurv.parametric
) since I noticed we don't do any filtering on those and I needed on the tests to compare RCLL old and new code kind-of. The above is the result of testing some edge cases.In general you can subset with
distr[keep]
when you have aMatdist
,Arrdist
or anVectorDistribution
if you have two or more observations. The problem starts when 1 observation is left.distr[keep]
with aVectorDistribution
leaves aDistribution
(e.g.WeibullAFT
-something insurv.parametric
), aWeightedDiscrete()
forMatdist
, and anArrdist
of dim1x...
(it doesn't degenerate to aMatdist
). And that's all fine, we still usepdata$distr = distr[keep]
to do this. But then if you redo some more filtering (on that same specific row index or another to go to 0 observations - a very edge case :),keep
will be eitherTRUE
orFALSE
, and most of the above are not subsettable or don't work as expected: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.
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.
Thanks for asking this - based on the above, we might want to make an
Arrdist
to aMatdist
when only one observation is left by design indistr6
?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.
@RaphaelS1 Do you have an opinion on this?