I am not sure whether I should use "to" or "for" here:
Machine learning methods have been widely adopted to classify images?
Or
Machine learning methods have been widely adopted for classifying images?
Which sentence sounds better?
prepositions
I am not sure whether I should use "to" or "for" here:
Machine learning methods have been widely adopted to classify images?
Or
Machine learning methods have been widely adopted for classifying images?
Which sentence sounds better?
Best Answer
According to the examples found in the following ngram, both are in use; the frequency of the use of "for" was greater in the past and the overall number of occurrences of it is greater.
Weighing in the balance in the aim of showing that "for" is much preferred by native speakers (of some sort, English, American, …), is the fact that the use of "to" appears to be associated importantly enough with writers from Asia or from Asian origin, and possibly other foreign users of the language.
This can be checked on the pages of examples: "adopted to classify", "adopted for classifying".
This tends to show that "for" is found to express purpose with a greater definiteness. To reinforce this contention there is the fact that in the OALD, "for" is found to be defined specifically as showing purpose, whereas "to" is not; this is however not the case for all references since purpose is mentioned in the Cambridge dictionary and in lexico.
Also, the infinitive clause (use of "to") shows a complex pattern of usage.
All of that tends to show that denoting purpose by means of "to" is a relatively uneasy process of unsure result and that the use of "for" is preferred because it seems straightforward enough.