Faster learning for adaptive neighbourhood selection by using the iteration count