adapted_rand_error(image_true=None, image_test=None, *, table=None, ignore_labels=(0,))
Pixels with label 0 in the true segmentation are ignored in the score.
Ground-truth label image, same shape as im_test.
Test image.
A contingency table built with skimage.evaluate.contingency_table. If None, it will be computed on the fly.
Labels to ignore. Any part of the true image labeled with any of these values will not be counted in the score.
The adapted Rand error; equal to $1 - \frac{2pr}{p + r}$
, where p
and r
are the precision and recall described below.
The adapted Rand precision: this is the number of pairs of pixels that have the same label in the test label image and in the true image, divided by the number in the test image.
The adapted Rand recall: this is the number of pairs of pixels that have the same label in the test label image and in the true image, divided by the number in the true image.
Compute Adapted Rand error as defined by the SNEMI3D contest.
Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.
Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)
SVG is more flexible but power hungry; and does not scale well to 50 + nodes.
All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them