def nearest_neighbors(self, document, top=10):
        v = ((self.cosine_similarity(document, d), d) for d in self.documents)
        # Filter the input document from the matches.
        # Filter documents that score zero, and return the top.
        v = [(w, d) for w, d in v if w > 0 and d.id != document.id]
        v = heapq.nsmallest(top, v, key=lambda v: (-v[0], v[1]))
        return v
Return the row of the chromosome
dataset/ETHPy150Open clips/pattern/pattern/vector/__init__.py/Model.nearest_neighbors--crossover with--dataset/ETHPy150Open taoliu/taolib/Assoc/tables.py/Table.get_row