Description Usage Arguments Value Author(s) Examples
This function tunes the hyper-parameters the threshold and the k of k-NN
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
... |
Optional parameters to be passed to other methods. |
formula |
a formula describing the classification variable and the attributes to be used. |
data, x |
data frame containing the tranining dataset to be filtered. |
knn_k |
range of the total number of nearest neighbors to be used.The default is 3:5. |
classColumn |
positive integer indicating the column which contains the (factor of) classes. By default, a dataframe built from 'data' using the variables indicated in 'formula' and The first column is the response variable, thus no need to define the classColumn. |
boxplot_range |
range of box and whisker diagram. The default is seq(0.8,1.2,0.1). |
repeats |
the number of cross-validation. The default is 10. |
method |
the classifier to be used to compute the accuracy. The valid methods are svm (default) and c50. |
iForest |
compute iForest score or not. The dafault is TRUE. |
threads |
the number of cores to be used in parallel |
An object of class filter
, which is a list with two components:
summary
is the a vector of values when different hyper-parameter is set.
call
contains the original call to the filter.
Wanwan Zheng
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.