How to estimate the Piecewise Hazard estimator.

class PieceWiseHazard[source]

PieceWiseHazard(breakpoints:array, t_scaler:MaxAbsScaler, **kwargs) :: Module

Piecewise Hazard where the hazard is constant between breakpoints. parameters:

  • breakpoints: time points where hazard would change (must include 0 and max possible time)

Plot Hazard Functions

learner.model.plot_hazard()
learner.model.plot_survival_function(np.arange(df['t'].max()))