tuning {fmf}R Documentation

Tuning For Fast Class Noise Detector with Multi-Factor-Based Learning

Description

This function tunes the hyper-parameters the threshold and the k of k-NN

Usage

tuning(x, ...)

## S3 method for class 'formula'
tuning(formula, data, ...)

## Default S3 method:
tuning(
  x,
  knn_k = seq(3, 7, 2),
  classColumn = 1,
  boxplot_range = seq(0.1, 1.1, 0.2),
  repeats = 10,
  method = "svm",
  iForest = TRUE,
  threads = 1,
  ...
)

Arguments

...

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

Value

An object of class filter, which is a list with two components:

Author(s)

Wanwan Zheng

Examples


data(iris)
out = tuning(Species~.,iris)


[Package fmf version 1.1.1 Index]