I'm doing some object recognition, and when I compare two images, I get some unbounded "distance" between the two images, representing how similar they are. This is somewhat useful, but it seems like it would be more useful if I could move from this "distance" space into a probability space, where instead of
" The distance between image A and image B is X ", I could get
" P(image is of class B | image A) = X' ".
What is a reasonable way to move from a distance space to a probability space?