fc_data_preparation: Prepares a data frame object for classification ml method

Description Usage Arguments Value Examples

Description

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.

Usage

1
fc_data_preparation(ts_fc_data, class_label)

Arguments

ts_fc_data

A time series or data frame object.

class_label

A character value containing a column name of the inputed data frame ts_fc_data.

Value

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.

Examples

1
2
3
library(mlbench)
fc_data_preparation(train_ann = mlbench::PimaIndiansDiabetes,
class_label = 'diabetes')

mowomoyela/tsfcmethodr documentation built on May 15, 2019, 4:47 p.m.