Learn R Programming

PatientLevelPrediction (version 3.0.0)

setKNN: Create setting for knn model

Description

Create setting for knn model

Usage

setKNN(k = 1000, indexFolder = file.path(getwd(), "knn"))

Arguments

k

The number of neighbors to consider

indexFolder

The directory where the results and intermediate steps are output

Examples

Run this code
# NOT RUN {
model.knn <- setKNN(k=10000)
# }

Run the code above in your browser using DataLab