I have the following sentence.
The second metric is top-k accuracy, which calculates the percentage of query images whose k nearest neighbors contain at least one image of the same class.
In the above sentence, I use
one image of the same class. But someone told me to use
with. I can not decide which one is more suitable? Is it proper to use either of the two words?