cobsurv.models.distance_functions.distance_cross_entropy#
- cobsurv.models.distance_functions.distance_cross_entropy(prob1, prob2, times=None)#
Calculates the cross entropy between two curves at respective timepoints
- Parameters:
prob1 (1d array) – The first curve
prob2 (1d array) – The second curve
times (None) – times is not needed for this distance
- Returns:
cross entropy – The cross entropy between the curves
- Return type:
float