plot_radar | R Documentation |
Radar plot with model score. score are scaled to [0,1]
,
each score is inversed and divided by maximum score value.
plot_radar(object, ..., verbose = TRUE)
plotModelRanking(object, ..., verbose = TRUE)
object |
An object of class |
... |
Other |
verbose |
Logical, indicates whether values of scores should be printed. |
A ggplot object.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.