starspace_knn {ruimtehol}R Documentation

K-nearest neighbours using a Starspace model

Description

K-nearest neighbours using a Starspace model

Usage

starspace_knn(object, newdata, k = 5, ...)

Arguments

object

an object of class textspace as returned by starspace or starspace_load_model

newdata

a character string of length 1

k

integer with the number of nearest neighbours

...

not used

Value

a list with elements input and a data.frame called prediction which has columns called label, similarity and rank


[Package ruimtehol version 0.3.2 Index]