I'm doing review for a journal. There are many sentences which really confuse me. For example:
We employ similarity learning using Ranking-SVM to learn parameters
Is it better to change it like so?
We employ similarity learning which uses Ranking-SVM to learn parameters
The similarity measure incorporates special emphasis on spatial localization, by which the similarity between x and y decreases with the increase of their in-between distance.
The above sentence is kind of weird to me. Is 'by which' used correctly?