View source: R/OptHoldoutSize_simulation.R
model_train | R Documentation |
Train model using either a GLM or a random forest
model_train(train_data, model_family = "log_reg", ...)
train_data |
Data to use for training; assumed to have one binary column called |
model_family |
Either 'log_reg' for logistic regression or 'rand_forest' for random forest |
... |
Passed to function |
Fitted model of type GLM or Ranger
# See examples for model_predict
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.