plot_radar: Model Ranking Plot

View source: R/plot_radar.R

plot_radarR Documentation

Model Ranking Plot

Description

Radar plot with model score. score are scaled to [0,1], each score is inversed and divided by maximum score value.

Usage

plot_radar(object, ..., verbose = TRUE)

plotModelRanking(object, ..., verbose = TRUE)

Arguments

object

An object of class auditor_model_performance created with model_performance function.

...

Other auditor_model_performance objects to be plotted together.

verbose

Logical, indicates whether values of scores should be printed.

Value

A ggplot object.

Examples

dragons <- DALEX::dragons[1:100, ]

# fit a model
model_lm <- lm(life_length ~ ., data = dragons)

lm_audit <- audit(model_lm, data = dragons, y = dragons$life_length)

# validate a model with auditor
mp_lm <- model_performance(lm_audit)


library(randomForest)
model_rf <- randomForest(life_length~., data = dragons)
rf_audit <- audit(model_rf, data = dragons, y = dragons$life_length)
mp_rf <- model_performance(rf_audit)

# plot results
plot_radar(mp_lm, mp_rf)


auditor documentation built on Nov. 2, 2023, 6:13 p.m.