def next_filename(self, name):
        highest_number = 0
        for migration in self:
            try:
                number = int(migration.name().split("_")[0])
                highest_number = max(highest_number, number)
            except ValueError:
                pass
        # Work out the new filename
        return "%04i_%s.py" % (
            highest_number + 1,
            name,
        )
Find the K nearest neighbours of data among distance D
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/South-1.0.2/south/migration/base.py/Migrations.next_filename--crossover with--dataset/ETHPy150Open bt3gl/Advanced-Machine-Learning/k-NN/kNN.py/knn_search