A method includes receiving N pairs of training examples and class labels therefor. Each pair includes a respective anchor example, and a respective non-anchor example capable of being a positive or a negative training example. The method further includes extracting features of the pairs by applying a DHCNN, and calculating, for each pair based on the features, a respective similarly measure between the respective anchor and no example. The method additionally includes calculating a similarity score based on the respective similarity measure for each pair. The score represents similarities between all anchor points and positive training examples in the pairs relative to similarities between all anchor points and negative training examples in the pairs. The method further includes maximizing the similarity score for the anchor example for each pair to pull together the training examples from a same class while pushing apart the training examples from different classes.
Please help me write a proper abstract based on the patent claims. CLAIM: 1. A computer-implemented method comprising: receiving, by a processor, N pans of training examples and class labels for the training examples that correspond to a plurality of classes, wherein each of the N pairs includes a respective anchor example and further includes a respective non-anchor example capable of being a positive training example or a negative training example; extracting, by the processor, features of the N pairs by applying a deep convolutional neural network to the N pairs and to the class labels; calculating, by the processor for each of the N pairs based on the features, a respective similarly measure between the respective anchor example and the respective non-anchor example; calculating, by the processor, a similarity score based on the respective similarity measure for each of the N pairs, the similarity score representing one or more similarities between all anchor points and all positive training examples in the N pairs relative to one or more similarities between all of the anchor points and all negative training examples in the N pairs; and maximizing, by the processor, the similarity score for the respective anchor example for each of the N pairs to pull together in a distribution space the training examples from a same one of the plurality of classes while pushing apart in the distribution space the training examples from different ones of the plurality of classes. 2. The computer-implemented method of claim 1, wherein each of the N pairs of training examples corresponds to a different one of the plurality of classes, 3. The computer-implemented method of claim 2, wherein the plurality of classes are randomly selected as a subset from a set of classes, and wherein the set of classes includes the plurality of classes and one or more other classes. 4. The computer-implemented method of claim 1, wherein said maximizing step is capable of simultaneously pushing N-1 examples away from a single reference sample from among the N pairs of training examples, in the distribution space. 5. The computer-implemented method of claim 1, wherein said maximizing step is capable of simultaneously pushing N-1 examples towards a single reference sample from among the N pairs of training examples, in the distribution space. 6. The computer-implemented method of claim 1, wherein the deep convolutional neural network is configured to include embedding vectors that are trained to satisfy a set of constraints on each loss function in a set of loss functions, wherein the deep convolutional neural network is trained using the set of loss functions. 7. The computer-implemented method of claim 1, wherein said maximizing step comprising computing a gradient of a logarithm of the similarity score. 8. The computer-implemented method of claim 1, wherein said maximizing step maximizes an objective function for deep metric learning. 9. The computer-implemented method of claim 1, wherein a total number of the plurality of classes at least one of (i) changes over time, (ii) is larger than a threshold amount, and (iii) is unknown. 10. The computer-implemented method of claim 1, further comprising verifying a user and providing the user access to an entity, based on a prediction generated using the deep convolutional neural network. 11. A non-transitory article of manufacture tangibly embodying a computer readable program which when executed causes a computer to perform the steps of claim 12. A system, comprising: a processor, configured to: receive, N pairs of training examples and class labels for the training examples that correspond to a plurality of classes, wherein each of the N pairs includes a respective anchor example and further includes a respective non-anchor example capable of being a positive training example or a negative training example; extract features of the N pairs by applying, a deep convolutional neural network to the N pairs and to the class labels; calculate, for each of the N pairs based on the features, a respective similarly measure between the respective anchor example and the respective non-anchor example; calculate a similarity score based on the respective similarity measure for each of the N pairs, the similarity score representing one or more similarities between all anchor points and all positive training examples in the N pairs relative to one or more similarities between all of the anchor points and all negative training examples in the N pairs; and maximize the similarity score for the respective anchor example for each of the N pairs to pull together in a distribution space the training examples from a same one of the plurality of classes while pushing apart in the distribution space the training examples from different ones of the plurality of classes. 13. The system of claim 12, wherein each of the N pairs of the training examples corresponds to a different one of the plurality of classes and 14. The system of claim 13, wherein the processor is configured to randomly selected the plurality of classes as a subset from a set of classes, and wherein the set of classes includes the plurality of classes and one or more other classes. 15. The system of claim 12, wherein said processor is configured to simultaneously push, in the distribution space, N-1 examples away from a single reference sample from among the N pairs of training examples, responsive to a maximization of the similarity score. 16. The system of claim 12, wherein said processor is configured to simultaneously push, in the distribution space, N-1 examples towards a single reference sample from among the N pairs of training examples, responsive to a maximization of the similarity score. 17. The system of claim 12, wherein the deep convolutional neural network is configured to include embedding vectors that are trained to satisfy a set of constraints on each loss function in a set of loss functions, wherein the deep convolutional neural network is trained using the set of loss functions. 18. The system of claim 12 wherein said processor is configured to maximize the similarity score by computing a gradient of a logarithm of the similarity score, 19. The computer-implemented method of claim 12, wherein a total number of the plurality of classes at least one of (i) changes over time, (ii) is larger than a threshold amount, and (iii) is unknown. 20. The system of claim 12, wherein said processor is further configured to verify a user and provide the user access to an entity, based on a prediction generated using the deep convolutional neural network.