R/generic_functions.R
preprocess_data.Rd
This is a generic function that must be implemented by all FP objects. This
object learns a set of parameters from the training data (i.e., the data
generated from a datasource get_data() method). The preprocess_data()
method then uses these parameters do processing on the training and test data
before the data is sent to the classifier. This method should not be called
directly but instead it is used internally by the cross-validator (CV)
object.
preprocess_data(fp, training_set, test_set)
fp | The FP object. |
---|---|
training_set | The training set data from one time bin. This is a data
frame where the rows correspond to data from a given trial. There must be a
column called |
test_set | The test set data from all times. This is a data frame where
the rows correspond to data from a given trial. There must be a column
called |
A list is returned that contains two data frames called
training_set
and test_set
which contain data in the same format as the
training_set
and test_set
arguments passed to this function, however
the data in these data frames has been processed by the FP object.