Description Usage Arguments Details Value Note References Examples
Ensemble-based filter for removing label noise from a dataset as a preprocessing step of classification. For more information, see 'Details' and 'References' sections.
1 2 3 4 5 6 |
formula |
A formula describing the classification variable and the attributes to be used. |
data, x |
Data frame containing the tranining dataset to be filtered. |
... |
Optional parameters to be passed to other methods. |
nfolds |
Number of partitions in each iteration. |
consensus |
Logical. If FALSE, majority voting scheme is used. If TRUE, consensus voting scheme is applied. |
p |
Real number between 0 and 1. It sets the minimum proportion of original instances which must be tagged as noisy in order to go for another iteration. |
s |
Positive integer setting the stop criterion together with |
y |
Real number between 0 and 1. It sets the proportion of good instances which must be stored in each iteration. |
theta |
Real number between 0 and 1. It sets the proportion of 'good rules' to be selected (see also 'Details' section). |
classColumn |
Positive integer indicating the column which contains the (factor of) classes. By default, the last column is considered. |
The full description of the method can be looked up in the provided references.
A PART rules set (from RWeka) is built in each of the nfolds
partitions of data
. After a
'good rules selection' process based on the accuracy of each rule, the subsequent good rules sets are
tested in the whole dataset, and the removal of noisy instances is decided via consensus or
majority voting schemes. Finally, a proportion of good instances (i.e. those whose label agrees
with all the base classifiers) is stored and not considered in subsequent iterations. The process stops
after s
iterations with not enough (according to the proportion p
) noisy
instances removed.
An object of class 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
is a factor containing 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.
The base rule classifier used is PART instead of C4.5rules used in the references.
For the 'good rules selection' step, we implement the 'Best-L rules' scheme since, according to the authors, it usually outperforms the others 'Adaptive Threshold' and 'Fixed Threshold' schemes.
By means of a message, the number of noisy instances removed in each iteration is displayed in the console.
Zhu X., Wu X., Chen Q. (2003, August): Eliminating class noise in large datasets. International Conference in Machine Learning (Vol. 3, pp. 920-927).
Zhu X., Wu X., Chen Q. (2006): Bridging local and global data cleansing: Identifying class noise in large, distributed data datasets. Data mining and Knowledge discovery, 12(2-3), 275-308.
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.