Skip to content

SurvSHAP for models with weights #97

@alkat19

Description

@alkat19

Hello,

I was wondering whether you have support for models with weights. For example:

data$weights <- weights

model_rf <- randomForestSRC::rfsrc(Surv(survtime, survstatus) ~ age + grade + tumorthickness + gender + 
						tobacco + race, data = data,case.wt = weights)

explainer <- survex::explain(model_rf,weights = data$weights) 

# or 

explainer <- survex::explain(model_rf,weights = weights) 

The above returns null when I access explainer$weights

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions