Re: [R] visualization of KNN results in text classification

2017-05-12 Thread Elahe chalabi via R-help
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

Re: [R] visualization of KNN results in text classification

2017-05-12 Thread Ismail SEZEN
> 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

Re: [R] visualization of KNN results in text classification

2017-05-08 Thread Ismail SEZEN
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

Re: [R] visualization of KNN results in text classification

2017-05-08 Thread Sarah Goslee
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.

Re: [R] visualization of KNN results in text classification

2017-05-08 Thread Elahe chalabi via R-help
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

[R] visualization of KNN results in text classification

2017-05-07 Thread Elahe chalabi via R-help
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