Learning Distance Functions using Equivalence Relations Conference Paper uri icon