def filter_vectors(self, input_list):
try:<EOL><INDENT>sorted_list = sorted(input_list, key=lambda x: x[<NUM_LIT:2>])<EOL>return sorted_list[:self.N]<EOL><DEDENT>except:<EOL><INDENT>return input_list<EOL><DEDENT>
Returns subset of specified input list.