k_neighbors and perceptron