Question: is knn generative or discriminative?
Answer: 4 Answers. KNN is a discriminative algorithm since it models the conditional probability of a sample belonging to a given class. To see this just consider how one gets to the decision rule of kNNs.