"AENN"(formula, data, ...)
"AENN"(x, k = 5, classColumn = ncol(x), ...)
filter
, which is a list with seven components:
cleanData
is a data frame containing the filtered dataset.
remIdx
is a vector of integers indicating the indexes for
removed instances (i.e. their row number with respect to the original data frame).
repIdx
is a vector of integers indicating the indexes for
repaired/relabelled instances (i.e. their row number with respect to the original data frame).
repLab
contains the new labels for repaired instances.
parameters
is a list containing the argument values.
call
contains the original call to the filter.
extraInf
is a character that includes additional interesting
information not covered by previous items.
AENN
applies the Edited Nearest Neighbor algorithm ENN
for all integers between 1 and k
on the whole dataset. At the end, any instance considered noisy by some ENN is removed.
# Next example is not run in order to save time
## Not run:
# data(iris)
# out <- AENN(Species~.-Petal.Length,iris)
# print(out)
# identical(out$cleanData, iris[setdiff(1:nrow(iris),out$remIdx),])
# ## End(Not run)
Run the code above in your browser using DataLab