Filter löschen
Filter löschen

How to use knn classification algorithm to find the nearest neighbour

1 Ansicht (letzte 30 Tage)
Nana Fernandes
Nana Fernandes am 23 Mär. 2017
Kommentiert: Akira Agata am 17 Aug. 2017
we have a excel sheet which is our dataset and another excel sheet(say training set) having few but same values from the original data set. and now we want to train our system to be able to classify that whether a value from the training set belongs to the original set
  1 Kommentar
Akira Agata
Akira Agata am 17 Aug. 2017
If my understanding is correct, your dataset, say dataD, is N1-by-m matrix and training set, say dataT, is N2-by-m matrix with N2 < N1. And some rows of dataT, for example 2nd and 4th, are equal to corresponding rows of dataD, for example 100th and 200th.
So, dataT(2,:) = dataD(100,:) and dataT(4,:) = dataD(200,:).
And what you want to do is to find these two rows. Is this my understanding correct??

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Statistics and Machine Learning Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by