Conduct preprocessing processes

preprocessing(data, y, type, advanced = FALSE, verbose = FALSE)

Arguments

data

A data source, that is one the of major R formats: data.table, data.frame, matrix, and so on.

y

A string that indicates a target column name.

type

A string that determines if Machine Learning task is the `binary_clf` or `regression`.

advanced

A logical value describing, whether the user wants to use advanced preprocessing methods (deleting correlated values).

verbose

A logical value, if set to TRUE, provides all information about the process, if FALSE gives none.

Value

A preprocessed dataset.

Examples

data(compas)
prep_data <- preprocessing(compas,'Two_yr_Recidivism', 'binary_clf')
#> Error in if (advanced) {    del_cor <- delete_correlated_values(pre_data, y, verbose = verbose)    pre_data <- del_cor$data    pre_data <- delete_id_columns(pre_data)    pre_data <- boruta_selection(pre_data, y)}: argument is not interpretable as logical