Description Usage Arguments Value
Calculate the model weights using k-nearest neighbor accuracy weights when "weight_type" == "knn"
1 | knn_weighted(train_data, test_data, M, scale = TRUE, knn_size = 10)
|
train_data |
Training data with predicted class columns from each model |
scale |
TRUE/FALSE for rescaling data (default: scale=TRUE) |
n |
The number of instances in the test data |
neighbors |
number of neighbors used in accuracy estimates for each model |
matris of weights nrow=number of test points, rcol=M=number of models
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.