Class KNNModel<T extends Output<T>>

java.lang.Object
org.tribuo.Model<T>
org.tribuo.common.nearest.KNNModel<T>
All Implemented Interfaces:
com.oracle.labs.mlrg.olcut.provenance.Provenancable<ModelProvenance>, Serializable, ProtoSerializable<org.tribuo.protos.core.ModelProto>

public class KNNModel<T extends Output<T>> extends Model<T>
A k-nearest neighbours model.

Note multi-threaded prediction uses a ForkJoinPool which requires that the Tribuo codebase is given the "modifyThread" and "modifyThreadGroup" privileges when running under a SecurityManager.

See Also: