kkn_model

0th

Percentile

kkn_model

generates the code to create the k nearest neighbors model.

Usage
kkn_model(data = "datos.aprendizaje", variable.pred = NULL,
  scale = TRUE, kmax = 7, kernel = "optimal",
  model.var = "modelo.knn", distance = 2)
Arguments
data

the name of the learning data.

variable.pred

the name of the variable to be predicted.

scale

the scale parameter of the model.

kmax

the kmax parameter of the model.

kernel

the kernel parameter of the model.

model.var

the name of the variable that stores the resulting model.

distance

the distance parameter of the model.

See Also

train.kknn

Aliases
  • kkn_model
Examples
# NOT RUN {
library(kknn)
x <- kkn_model('iris', 'Petal.Length')
exe(x)
print(modelo.knn)

# }
Documentation reproduced from package regressoR, version 1.1.7, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.