Contents

numberOfNeighbors

The key you use to access the number of neighbors that adjusts the affinity of a k-nearest-neighbor model.

Declaration

class var numberOfNeighbors: MLParameterKey { get }

Discussion

The value type for the numberOfNeighbors key is an Int64.

See Also

Accessing model parameters