Description Usage Arguments Value Examples
This is a function to prepares a data frame object for the classification ml process. All date cols are deleted. Also, all character and factor cols are transformed by binarization through one hot encoding. As input is only required an object from the class data.frame Otherwise the function returns an error message.
1 | fc_data_preparation(ts_fc_data, class_label)
|
ts_fc_data |
A time series or data frame object. |
class_label |
A character value containing a column name of the
inputed data frame |
A data frame object containg the prepared data. If the input is not a time series or data frame object, an error message is returned.
1 2 3 | library(mlbench)
fc_data_preparation(train_ann = mlbench::PimaIndiansDiabetes,
class_label = 'diabetes')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.