Created
June 16, 2019 19:24
-
-
Save sbalci/61eaf4041a40ab266e471d9867efb8c0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://github.com/MI2DataLab/modelDown | |
# https://github.com/MI2DataLab/modelDown_example | |
# https://mi2datalab.github.io/modelDown/getting-started | |
# https://github.com/pbiecek/DALEX | |
# https://github.com/pbiecek/archivist | |
# devtools::install_github("MI2DataLab/modelDown") | |
# install_dependencies() | |
library(modelDown) # Make Static HTML Website for Predictive Models # [github::MI2DataLab/modelDown] | |
library(DALEX) # Descriptive mAchine Learning EXplanations # [CRAN] | |
library(breakdown) # Model Agnostic Explainers for Individual Predictions # [CRAN] | |
View(HR_data) | |
glm(left ~ salary + satisfaction_level + last_evaluation + number_project + average_montly_hours + time_spend_company + Work_accident + promotion_last_5years + sales, data = HR_data) | |
explainer_glm <- DALEX::explain(glm_model, data=HR_data, y=HR_data$left) | |
modelDown::modelDown(explainer_glm) | |
# https://git.io/fjacS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment