Giter Site home page Giter Site logo

modeloriented / live Goto Github PK

View Code? Open in Web Editor NEW
34.0 9.0 5.0 8.66 MB

Local Interpretable (Model-agnostic) Visual Explanations - model visualization for regression problems and tabular data based on LIME method. Available on CRAN

Home Page: https://modeloriented.github.io/live/

License: Other

R 100.00%
model-visualization machine-learning interpretability lime visual-explanations xai iml

live's People

Contributors

mstaniak avatar pbiecek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

live's Issues

some error in sample_locally

In the wine_quality() vigniette call

similar <- sample_locally(data = winequality_red,
                            explained_instance = winequality_red[5, ], 
                            explained_var = "quality", 
                            size = 100,
                            standardise = TRUE)

results

Error in mutate_impl(.data, dots) : 
  Evaluation error: object 'x' not found.

Naprawić ctree

'valid.viewport(x, y, width, height, just, gp, clip, xscale, yscale, ':
invalid 'yscale' in viewport

Error in installation

devtools::install_github("MI2DataLab/live")
Downloading GitHub repo MI2DataLab/live@master
from URL https://api.github.com/repos/MI2DataLab/live/zipball/master
Installing live
"C:/PROGRA1/R/R-341.2/bin/x64/R" --no-site-file --no-environ
--no-save --no-restore --quiet CMD INSTALL
"C:/Users/Jinn-Yuh/AppData/Local/Temp/RtmpqCNN78/devtools1a6c27391bb/MI2DataLab-live-8a454c6"
--library="D:/Dropbox/Stat/R/Library" --install-tests

  • installing source package 'live' ...
    Error : Invalid DESCRIPTION file

Malformed maintainer field.

See section 'The DESCRIPTION file' in the 'Writing R Extensions'
manual.

ERROR: installing package DESCRIPTION failed for package 'live'

wide data - big problem

In the TCGA use case we have like 20000 predictors, this causes 2 types of problems:

  1. ranger nor randomForest are not working for this number of features, so I am calling them on subset of 10k features

  2. for white box classifiers we need more samples in the surroundings than dimensions. So the default 50 is far not enough (otherwise we will fall in the p >> n problem for the white box).
    And 20k is too time-consuming.

Błąd w poleceniu 'sample_locally(data = winequality_red, explained_instance = winequality_red[5, ': Assertion on 'data' failed: Must be of type 'data.frame', not 'closure'

sample_locally(winequality_red,
winequality_red[5, ],
black_box = "regr.lm",
explained_var = "quality",
size = 100,
standardise = TRUE)

  • Nie działa

data <- winequality_red
sample_locally(data,
data[5, ],
black_box = "regr.lm",
explained_var = "quality",
size = 100,
standardise = TRUE)

  • Działa
    Wcześniej nie było tego problemu

forest plot

sort po t-statystyce,
pokazać punkt, w którym to jest liczone

wine quality

Example is broken after I cleaned the code,
I have yet to determine if this is because I created a bug or fixed a bug.
(Problem: flat predictions)

Dodać klasy

Ostatecznie może wystarczyć jedna funkcja plot, która na podstawie klasy obiektu ustali, która biała skrzynka została uzyta i narysuje odpowiedni wykres

plot

rysować wynik z ggplota

Assertion on 'choices' failed. Must be of length >= 1, but has length 0

For 'fit_explanation' and other related function the following error occurs:

library(live)
dim(HR_data)
HR_data$left <- as.numeric(HR_data$left)
trees <- randomForest(left~., data = HR_data, ntree=1000)

similar <- sample_locally(data = HR_data,
                          explained_instance = HR_data[1,],
                          explained_var = "left", 
                          size = 2000)

similar1 <- add_predictions(HR_Data, similar, black_box_model = trees)

trained <- fit_explanation(live_object = similar1, 
                           white_box = "regr.lm", selection = FALSE)
Error in fit_explanation(live_object = similar1, white_box = "regr.lm",  : 
  Assertion on 'choices' failed. Must be of length >= 1, but has length 0.

Zamiana lm na glm

albo jeszcze bardziej elastyczne narzedzie

ew mozliwosc wyboru lm/GLM/GAM/cos jeszcze za pomoca interfejsu mlr

Statistics

opisujące jakość dopasowania modelu

forestplot

sprawdzić,czy sortowanie jest okej,
uwzględnić odpowiednio intercept w wyświetlaniu (nie ma go w obserwacji, nie wiadomo z góry, na którym miejscu będzie po posortowaniu)

Klasyfikacja

Przywrócić obsługę etykiet zamiast log odds

Waterfall plot

make it work reasonably for classif.logreg
(probably just exponentiate)

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.