sentence1: minimal loss hashing learn hash codes by minimizing the triplet loss functions based on similarity of data points .
sentence2: minimal loss hashing learn hash codes by minimizing hinge-like loss functions based on similarities or relative similarities of data points .