Computation of a noisy label based on majority class among k nearest neighbors with different label.
bord_noise(x, y, num_noise, idx_noise, k)
A vector of length length(y)
with the class of each sample, including the new noisy
classes for the samples with indices idx_noise
.
a data frame of input attributes.
a factor vector with the output class of each sample.
an integer with the number of noisy samples.
an integer vector with the indices of noisy samples.
an integer with the number of nearest neighbors to use.