View source: R/embed-all-the-things.R
starspace_knn | R Documentation |
K-nearest neighbours using a Starspace model
starspace_knn(object, newdata, k = 5, ...)
object |
an object of class |
newdata |
a character string of length 1 |
k |
integer with the number of nearest neighbours |
... |
not used |
a list with elements input and a data.frame called prediction which has columns called label, similarity and rank
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.