This function calculates the gradient of the synthetic Cox proportional hazards model using a vectorized approach.
get_cox_syn_gradient(X, time, coefs, hazard_constant)
A numeric vector representing the gradient of the synthetic Cox model.
A matrix of covariates with rows representing observations and columns representing features.
A vector of time-to-event data.
A vector of regression coefficients.
A scalar representing the hazard constant.