synthcity.plugins.core.models.survival_analysis.metrics module

evaluate_brier_score(T_train: numpy.ndarray, Y_train: numpy.ndarray, Prediction: numpy.ndarray, T_test: numpy.ndarray, Y_test: numpy.ndarray, Time: float) float

Helper for evaluating the Brier score.

evaluate_c_index(T_train: numpy.ndarray, Y_train: numpy.ndarray, Prediction: numpy.ndarray, T_test: numpy.ndarray, Y_test: numpy.ndarray, Time: float) float

Helper for evaluating the C-INDEX metric.

generate_score(metric: numpy.ndarray) Tuple[float, float]
km_survival_function(T: numpy.ndarray, E: numpy.ndarray) Tuple[lifelines.KaplanMeierFitter, numpy.ndarray, numpy.ndarray, numpy.ndarray]
nonparametric_distance(real: Tuple[numpy.ndarray, numpy.ndarray], syn: Tuple[numpy.ndarray, numpy.ndarray], n_points: int = 1000) Tuple
print_score(score: Tuple[float, float]) str