Knn-classification o regression

kiran2004
kiran2004 New Altair Community Member
edited November 5 in Community Q&A
am trying to do knn in my process, and my requirement is to get knn classification not Knn regression, but i am getting KNN regression model somehow. why so ? how can i get KNN classification? i have gone through all the tutorial processes but still not bale to get the KNN classification .
Tagged:

Answers

  • Caperez
    Caperez Altair Community Member
    Hello @kiran2004,

    in both cases the operator is the same, the main difference is the dataset and the label (target)
    if you have numerical attribute in a continuos space as label you are attempting a regression model, but if you have a discrete label polynominal attribute, like {yes, no} or {0,1}, etc, you have a classification model.  

    best, 

    César