def similar_items(self, itemid, N=<NUM_LIT:10>):
if itemid >= self.similarity.shape[<NUM_LIT:0>]:<EOL><INDENT>return []<EOL><DEDENT>return sorted(list(nonzeros(self.similarity, itemid)), key=lambda x: -x[<NUM_LIT:1>])[:N]<EOL>
Returns a list of the most similar other items