Description Usage Arguments Value Examples
View source: R/trainTestSplitFunction.R
train Test Data Split for Machine Learning
1 | trainTestSplit(x, sp = 0.75, targetVar = NULL)
|
x |
dataFrame |
sp |
training split percent |
targetVar |
target Variable |
list...train,test,trainTarget,testTarget
1 | trainTestSplit(pgaPointsAllData,sp=0.75,targetVar="ActualPoints")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.