Here is a link to a notebook for generating reliability diagrams. Check the "rel_diagram_sub2" function, the "accs" correspond to the average accuracies for each bin, and "confs" correspond to the average confidence of each bin.
Here is a link to a notebook for generating reliability diagrams. Check the "rel_diagram_sub2" function, the "accs" correspond to the average accuracies for each bin, and "confs" correspond to the average confidence of each bin.