Giter Club home page Giter Club logo

Comments (6)

hbaniecki avatar hbaniecki commented on June 3, 2024

Sure, i will take care of it

from auditor.

hbaniecki avatar hbaniecki commented on June 3, 2024

By the way, ggplot2 plots legends do not work either.
temp

from auditor.

agosiewska avatar agosiewska commented on June 3, 2024

Thank you @hbaniecki
yes, I knew about ggplot, yet for more than 3 models are hard to distinguish anyway due to colors.

from auditor.

agosiewska avatar agosiewska commented on June 3, 2024

Btw, I have experienced a bug in legend.
Including special characters in labels, for example ( makes legend not work.

library(auditor)

titanic <- na.omit(DALEX::titanic)
titanic$survived <- titanic$survived == "yes"

# fit a model
model_glm <- glm(survived ~ ., family = binomial, data = titanic)

# use DALEX package to wrap up a model into explainer
exp_glm <- DALEX::explain(model_glm, data = titanic, y = titanic$survived, label = "glm(1)")

# validate a model with auditor
library(auditor)
eva_glm <- model_evaluation(exp_glm)

model_glm_2 <- glm(survived ~ .-age, family = binomial, data = titanic)
exp_glm_2 <- DALEX::explain(model_glm_2, data = titanic, y = titanic$survived, label = "glm(2)")
eva_glm_2 <- model_evaluation(exp_glm_2)

plotD3_lift(eva_glm, eva_glm_2)

from auditor.

hbaniecki avatar hbaniecki commented on June 3, 2024

Yes. This legend works on html/css class names. I made space in label work though.
https://stackoverflow.com/questions/448981/which-characters-are-valid-in-css-class-names-selectors

from auditor.

hbaniecki avatar hbaniecki commented on June 3, 2024

I guess that i could make it work regardless of label but i would have to rewrite a lot of code

from auditor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.