Description Usage Arguments Value Examples
View source: R/Base_Functions.R
Use machine-learning methods to predict probability of agent having CDI
1 2 3 4 5 6 7 8 9 10 | predict_CDI(
df,
cores = 1L,
folds = 5L,
model = "gbm",
scoring = "ROC",
repeats = 2L,
trees = 1L,
grid = 0L
)
|
df |
Table of agent data to use in predictive model |
cores |
Number of cores to use in parallel |
folds |
Number of cross-validation folds |
model |
Machine-learning model to use |
scoring |
Method of scoring to judge model accuracy |
repeats |
Number of repeats for cross-validation |
trees |
Number of trees to use if applicable to machine-learning model |
grid |
Tuning grid to use if applicable |
Machine-learning model
1 | model <- predict_CDI(df, cores = 1L, folds = 5L, model = "gbm", scoring = "ROC", repeats = 2L, trees = 1L, grid = 0L);
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.