Description Usage Arguments Value
View source: R/PSB_functions.R
This function takes the data.frame generated from featureMatrix and separates the data.frame in two Train and Test sets for cross-validation.
1 2 3 4 5 6 7 | trainTest(
featureMatrix,
positive.label = 1,
negative.label = 0,
testFold = 5,
labelAsFactor = TRUE
)
|
featureMatrix |
The data.frame that featureMatrix function outputs. |
positive.label |
The positive label used in featureMatrix function. |
negative.label |
The negative label used in featureMatrix function. |
testFold |
Portion of data.frame to be used as Test set. |
labelAsFactor |
Set the column of Label into factors. |
A list containing the Train and Test sets. no.Aug attribute contains the number of base and augmented sample in each group.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.