![Checkout](https://naologiccom.imgix.net/website-update/general/checkout.png?auto=compress&w=64&fm=png)
Start free trial
Take Naologic for a spin today, no credit card needed and no obligations.
Start free trial Question
Discriminative Models - Is KNN generative or discriminative?
Answer
By simulating the conditional likelihood that a given sample belongs to a certain class, k-nearest neighbors (KNN) models discrimination. Taking into account the decision rule of KNNs helps to clarify this.