gbnet.models.survival.hazard_integrator
Classes
Functions
|
Load the appropriate gradient boosting module. |
Module Contents
- gbnet.models.survival.hazard_integrator.loadModule(module)[source]
Load the appropriate gradient boosting module.
- class gbnet.models.survival.hazard_integrator.HazardIntegrator(covariate_cols=[], params={}, min_hess=0.0, module_type='XGBModule', integration_method='trapezoid')[source]
Bases:
torch.nn.Module- Parameters:
covariate_cols (List[str])
params (Dict)
min_hess (float)
module_type (str)
integration_method (str)
- _prepare_data(df)[source]
Pre-processes and caches data that is static during training. This method performs sorting, tensor conversion, and computes time differences and group boundaries once.
- Parameters:
df (pandas.DataFrame)