Molecular Similarity Perception Based on Machine-Learning Models