Description Usage Arguments Value
A simple learning and prediction workflow that may deal with NAs and use re-sampling techniques to balance an imbalanced regression problem.
1 2 3 |
train |
a data frame for training |
test |
a data frame for testing |
form |
a formula describing the model to learn |
model |
the name of the algorithm to use |
resample |
re-sampling technique to be used. Default is NULL. |
resample.pars |
parameters to be passed to re-sample function. Default is NULL. |
handleNAs |
string indicating how to deal with NAs. If "centralImput", training observations with at least 80% of non-NA columns, will have their NAs substituted by the mean value and testing observatiosn will have their NAs filled in with mean value regardless. Default is NULL. |
min_train |
a minimum number of observations that must be
left to train a model. If there are not enough observations,
predictions will be |
nORp |
a maximum number or fraction of columns/rows with missing
values above which a row/column will be removed from train before
learning the model. Only works if |
time |
the name of the column in |
site_id |
the name of the column in |
... |
other parameters to feed to |
a data frame containing time-stamps, location IDs, true values and predicted values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.