powered by
This function predicts values based upon a model trained by mlknn. '
mlknn
# S3 method for MLKNNmodel predict(object, newdata, probability = getOption("utiml.use.probs", TRUE), ..., cores = getOption("utiml.cores", 1), seed = getOption("utiml.seed", NA))
Object of class 'MLKNNmodel'.
MLKNNmodel
An object containing the new input data. This must be a matrix, data.frame or a mldr object.
Logical indicating whether class probabilities should be returned. (Default: getOption("utiml.use.probs", TRUE))
getOption("utiml.use.probs", TRUE)
Not used.
Ignored because this method does not support multi-core.
Ignored because this method is deterministic.
An object of type mlresult, based on the parameter probability.
ML-KNN
# NOT RUN { model <- mlknn(toyml) pred <- predict(model, toyml) # }
Run the code above in your browser using DataLab