View source: R/print_performance.R
print_performance | R Documentation |
Prints the performance slot of a model fitted with rf()
, rf_repeat()
, or rf_spatial()
. For models fitted with rf_repeat()
it shows the median and the median absolute deviation of each performance measure.
print_performance(model)
model |
Model fitted with |
Prints model performance scores to the console.
print_performance()
, get_performance()
if(interactive()){ #loading example data data(plant_richness_df) data(distance.matrix) #fitting a random forest model rf.model <- rf( data = plant_richness_df, dependent.variable.name = "richness_species_vascular", predictor.variable.names = colnames(plant_richness_df)[5:21], distance.matrix = distance_matrix, distance.thresholds = 0, n.cores = 1, verbose = FALSE ) #printing performance scores print_performance(rf.model) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.