View source: R/print_evaluation.R
print_evaluation | R Documentation |
Prints the results of an spatial cross-validation performed with rf_evaluate()
.
print_evaluation(model)
model |
A model resulting from |
A table printed to the standard output.
plot_evaluation()
, get_evaluation()
if(interactive()){ #loading example data data(plant_richness_df) data(distance_matrix) #fitting 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 ) #evaluation with spatial cross-validation rf.model <- rf_evaluate( model = rf.model, xy = plant_richness_df[, c("x", "y")], n.cores = 1 ) #checking evaluation results print_evaluation(rf.model) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.