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