View source: R/supporting_functions.R
RF_Pred_Multiclass | R Documentation |
Predict multiclass variables based on a taxa read count table by random forest
RF_Pred_Multiclass(TAX, factor, fold = 5, seed = 2020)
TAX |
The taxa read count table, samples (row) by taxa (col). |
factor |
The multiclass variable to predict, e.g., the key variable, never smoker/former smoker/current smoker, must be a factor. |
fold |
The number of folds; default is 5. |
seed |
The seed to generate fold indices for samples; default is 2020. |
A list
pred - A table summarizing the predicted probabilities and true labels for all samples.
cross_entropy_across_fold - mean cross-entropy across folds.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.