Get the k nearest neighbors of a given entity
Declaring type: CorrelationMatrix
Namespace: MyMediaLite.Correlation
Assembly: MyMediaLite
Collapse/Expand Syntax
C#
public int[] GetNearestNeighbors (
        int entity_id,
        uint k
) 
Parameters
entity_id
the numerical ID of the entity
k
the neighborhood size
Return Value
an array containing the numerical IDs of the k nearest neighbors