Thanks for your reply. What I exactly have is a data frame with rows containing
words which have been used in each speech and columns containing frequency of
these words, I have an extra row showing the type of the speech whether it was
from a control group or Alzheimer group. Then I create a
> On 12 May 2017, at 15:30, Elahe chalabi wrote:
>
>
>
> Thanks for your reply. What I exactly have is a data frame with rows
> containing words which have been used in each speech and columns containing
> frequency of these words, I have an extra row showing the type of the speech
> whethe
As far as I know, kNN groups by Eucledian distance. So, you need numerical data
as input. You said your dataset has only “speeches” and “type of people”. Are
these input? or one of them is input and the latter one is output? Type of
people should be a factor variable (I guess). I don’t know how
Well, probably you need to first tell us why none of the suggestions that
come up when you google "plot KNN results in R" work for you, and what
other kind of plot you are trying to produce, and what you have tried, so
we can offer advice that helps.
As it is, we have no idea what you are after.
Any idea?!
On Sunday, May 7, 2017 5:56 PM, Elahe chalabi via R-help
wrote:
Hi all,
Does anyone know what is the best way to visualize KNN(K nearest neighbor)
results for classification of texts in R?
My data set has only speeches and the type of the people for them which is
control
Hi all,
Does anyone know what is the best way to visualize KNN(K nearest neighbor)
results for classification of texts in R?
My data set has only speeches and the type of the people for them which is
control group or Alzheimer group, KNN classifies these two groups for me but I
don't know how
6 matches
Mail list logo