Description Usage Arguments Value
Helper function to split data into training and testing sets.
1 | train_test_split(X, y, test_size = 0.2)
|
X |
data.frame or matrix of data |
y |
Labels (optional). |
test_size |
Proportion of samples to set aside for testing. |
List of X_train, X_test, y_train, y_test
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.