bord_noise {noisemodel} | R Documentation |
Mislabeling based on k-nearest neighbors
Description
Computation of a noisy label based on majority class among k nearest neighbors with different label.
Usage
bord_noise(x, y, num_noise, idx_noise, k)
Arguments
x |
a data frame of input attributes. |
y |
a factor vector with the output class of each sample. |
num_noise |
an integer with the number of noisy samples. |
idx_noise |
an integer vector with the indices of noisy samples. |
k |
an integer with the number of nearest neighbors to use. |
Value
A vector of length length(y)
with the class of each sample, including the new noisy
classes for the samples with indices idx_noise
.
[Package noisemodel version 1.0.2 Index]