KnnUpdate: KNN : Update

Description Usage Arguments Value

View source: R/KnnUpdate.R

Description

The function can be used to update KNN model when new data is provided

Usage

1
KnnUpdate(knnMdl, newData)

Arguments

knnMdl

a list containing:

  • knnMdl$data - The data set provided by user

  • knnMdl$xCol - The column number of features provided by user or the best subset column number

  • knnMdl$yCol - The column number of target provided by user

  • knn$bestK - The best k nearest neighbor calculated using the function KnnFit

newData

a dataframe or a matrix, to be used for updating the model

Value

a list containing :


nitesh-1507/DSWE documentation built on April 16, 2020, 5:28 p.m.