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

add reverse methods #339

Merged
merged 5 commits into from
Dec 11, 2023
Merged

add reverse methods #339

merged 5 commits into from
Dec 11, 2023

Conversation

RaphaelS1
Copy link
Collaborator

No description provided.

@RaphaelS1 RaphaelS1 requested a review from bblodfon December 7, 2023 10:42
#' @return [mlr3proba::TaskSurv].
reverse = function() {
assert(self$censtype %in% c("left", "right"))
d = copy(self$data())
Copy link
Collaborator

Choose a reason for hiding this comment

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

copy from data.table right? (to make sure we don't change the initial task)

@bblodfon
Copy link
Collaborator

bblodfon commented Dec 10, 2023

@RaphaelS1 good to merge!

Btw, when you run document() do you get the surv.kaplan and surv.rpart docs re-written as follows? ie:

+\item lp is predicted 1.37095844714667 * lp is predicted -0.564698171396089 * lp is predicted 0.363128411337339 * lp is predicted 0.63286260496104 * lp is predicted 0.404268323140999

@RaphaelS1 RaphaelS1 merged commit 6b1ecc8 into main Dec 11, 2023
3 of 4 checks passed
@RaphaelS1 RaphaelS1 deleted the reverse_meth branch December 11, 2023 10:19
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.

2 participants