You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to test different weights on my cox LASSO model to see if it will improve the model's performance.
However, there was no difference in the C-index scores when the model was weighted vs any of the weights I tested (1, 2.5, 5, 7.5, 10). The 'weights' argument is not being applied to the model.
The text was updated successfully, but these errors were encountered:
I saw a stackoverflow post that used 'weights' inside cv.grpsurv().
I've been using it in my model below:
`
weights = ifelse(train_surv_ls == 1, 10, 1)
cox_ls = cv.grpsurv(
X = x_train,
y = train_surv_ls,
group = group,
lambda = lambda_values,
penalty = 'grLasso',
nfold = 10,
weights = weights
)
`
The code is running successfully in Databricks. However, it makes sense that if there is no weights argument why the model is not accounting for the weights.
I am trying to test different weights on my cox LASSO model to see if it will improve the model's performance.
However, there was no difference in the C-index scores when the model was weighted vs any of the weights I tested (1, 2.5, 5, 7.5, 10). The 'weights' argument is not being applied to the model.
The text was updated successfully, but these errors were encountered: