survivalpredict.metrics.integrated_brier_score_ipcw_sklearn_metric

survivalpredict.metrics.integrated_brier_score_ipcw_sklearn_metric(y_true, y_pred)

Scikit-learn metric wrapper for integrated Brier scores weighted with the inverse probability of censoring.

Parameters:
  • y_true (np.ndarray) – The true target; it is assumed, the target is generated from ‘survivalpredict.pipeline.build_sklearn_pipeline_target’.

  • y_pred (np.ndarray[tuple[int, int], np.dtype[np.floating]]) – Predicted survival curves from a ‘survivalpredict’ estimator.