I am looking to output the answers of predict to a data frame so I can identify the top matches.
The data is FAQ doc with two columns - multiple questions to one answer.
If I use
Predict(svmfit, data)
Then it outputs multiple possible matches, but when I use
As.data.frame(predict(svmfit, data)) it outputs only the top answer.
Any help would be appreciated.
Thanks.