KNeighborsClassifier
KNeighborsClassifierA model type for constructing a K-nearest neighbors classifier, based on MLJScikitLearnInterface.jl, and implementing the MLJ model interface.
From MLJ, the type can be imported using
KNeighborsClassifier = @load KNeighborsClassifier pkg=MLJScikitLearnInterfaceDo model = KNeighborsClassifier() to construct an instance with default hyper-parameters. Provide keyword arguments to override hyper-parameter defaults, as in KNeighborsClassifier(n_neighbors=...).
Hyper-parameters
n_neighbors = 5weights = uniformalgorithm = autoleaf_size = 30p = 2metric = minkowskimetric_params = nothingn_jobs = nothing