Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Data generator for Arena - interactive XAI dashboard

License

NotificationsYou must be signed in to change notification settings

ModelOriented/ArenaR

Repository files navigation

Codecov test coverageR build status

Overview

Arena is an interactive tool that allows you to explore and compare any model regardless of its internal structure.

The arena can be run in two modes - live (R runs in the background and calculates all necessary explanations) and serverless (all necessary explanations are calculated earlier).

Using the Arena is trivially simple. An example with different levels of advancement is available athttp://arenar.drwhy.ai/.

Installation

Install theArenaR package from GitHub.

devtools::install_github("ModelOriented/ArenaR")

How to use it

Examples generated with ArenaR

Articles

Live version - fast for testing on huge data frames

library(arenar)library(gbm)library(DALEX)library(dplyr)# Create models and DALEX explainersmodel_gbm100<- gbm(m2.price~.,data=apartments,n.trees=100)expl_gbm100<- explain(model_gbm100,data=apartments,y=apartments$m2.price,label="gbm [100 trees]")model_gbm500<- gbm(m2.price~.,data=apartments,n.trees=500)expl_gbm500<- explain(model_gbm500,data=apartments,y=apartments$m2.price,label="gbm [500 trees]")create_arena(live=TRUE) %>%# Pushing explainers for each models  push_model(expl_gbm100) %>%  push_model(expl_gbm500) %>%# Push dataframe of observations  push_observations(apartments) %>%# Run server of default port and ip  run_server()

Generating static files - easy to share

library(arenar)library(gbm)library(DALEX)library(dplyr)# Create models and DALEX explainersmodel_gbm100<- gbm(m2.price~.,data=apartments,n.trees=100)expl_gbm100<- explain(model_gbm100,data=apartments,y=apartments$m2.price,label="gbm [100 trees]")model_gbm500<- gbm(m2.price~.,data=apartments,n.trees=500)expl_gbm500<- explain(model_gbm500,data=apartments,y=apartments$m2.price,label="gbm [500 trees]")# Take only few observationsobservations<-apartments %>% filter(construction.year>=2009)# Observations' names are taken from rownamesrownames(observations)<- paste0(observations$district,"",observations$surface,"m2")create_arena() %>%# Pushing explainers for each models  push_model(expl_gbm100) %>%  push_model(expl_gbm500) %>%# Push dataframe of observations  push_observations(observations) %>%# Upload calculated arena files to Gist and open Arena in browser  upload_arena()

Acknowledgments

Work on this package was financially supported by the Polish National Science Centre under Opus Grant number 2017/27/B/ST6/0130.

Releases

No releases published

Packages

No packages published

Contributors2

  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp