Description Usage Arguments Value
View source: R/predict_models.R
Predict models
1 2 |
data |
A data frame with columns "model" and "test" containing the fitted models and test datasets, respectively. |
select_cols |
Columns to select. |
blend |
Default is NULL. Only has to be set when an mlist object has been fitted. Defines how model predictions are blended. Options: "average" for averaging predictions, or "logistic" for model stacking with logistic regression. |
passed_args |
Default is NULL. Only has to be set when an mlist object has been fitted. List of lists with arguments to be passed on to predict function (as used in do.call) |
occ_col |
Name of the response (occurence) column in data. |
keep_models |
Whether to keep the model objects in the output data frame. Can be set to FALSE to reduce object size. |
... |
arguments passed on to predict |
A data frame with added column "prediction" containing the model predictions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.