1. In a computing environment, a method performed on at least one processor, comprising: creating a similarity measure between objects, each object represented by vectors, including by learning values of vector elements based upon: a functional form of the element value with parameters to learn, a similarity function for computing a similarity score given the vectors, and a loss function of computed similarity scores and labels of the vectors; and tuning the parameters in the similarity function to decide the element values, including by minimizing the loss function.