Neural Similarity Learning