View source: R/fp_select_k_features.R
preprocess_data.fp_select_k_features | R Documentation |
This is a 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.
## S3 method for class 'fp_select_k_features'
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.
fp_zscore()
, fp_select_k_features()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.