helper function to calculate the ECE of calibrations
getECE(actual, predicted, n_bins = 10)
actual
observed binary phenotype
predicted
predicted values
n_bins
the number of bins
ECE value