View source: R/OptHoldoutSize_simulation.R
split_data | R Documentation |
Split data into holdout and intervention sets
split_data(X, frac)
X |
Matrix of observations |
frac |
Fraction of observations to use for the training set |
Vector of TRUE/FALSE values (randomised) with proportion frac
as TRUE
# See examples for model_predict
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.