Skip to content

Commit f85baba

Browse files
committed
update dashboards
1 parent e2bf2d8 commit f85baba

File tree

13 files changed

+101
-16080
lines changed

13 files changed

+101
-16080
lines changed

R/data.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#'
1111
#' The following columns: GDP per Capita, Social Support, Life Expectancy,
1212
#' Freedom, Generosity, Corruption describe the extent to which these factors
13-
#' contribute in evaluating the happiness in each country.
13+
#' contribute in evaluating the happiness in each country. Variables:
1414
#'
1515
#' \itemize{
1616
#' \item \strong{score} - target variable, continuous value between 0 and 10 (regression)

R/modelStudio.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ modelStudio.explainer <- function(explainer,
491491
if (!is.null(license)) options$license <- paste(readLines(license), collapse=" ")
492492
if (is.null(options$ms_title)) options$ms_title <- paste0("Interactive Studio for ", label, " Model")
493493
if (!is.null(options$ms_subtitle)) options$ms_margin_top <- options$ms_margin_top + 40
494-
if (is.null(options$margin_left)) options$margin_left <- 7*max(nchar(variable_names))
494+
if (is.null(options$margin_left)) options$margin_left <- max(105, 7*max(nchar(variable_names)))
495495

496496
options <- c(list(time = time,
497497
model_name = label,

README.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ install.packages("DALEXtra")
7171

7272
### mlr [dashboard](https://modelstudio.drwhy.ai/mlr.html)
7373

74-
Make a studio for the regression `ranger` model on `apartments` data.
74+
Make a studio for the regression `ranger` model on the `apartments` data.
7575

7676
<details open>
7777
<summary><strong><em>code</em></strong></summary>
@@ -112,7 +112,7 @@ modelStudio(explainer, new_observation)
112112

113113
### xgboost [dashboard](https://modelstudio.drwhy.ai/xgboost.html)
114114

115-
Make a studio for the classification `xgboost` model on `titanic` data.
115+
Make a studio for the classification `xgboost` model on the `titanic` data.
116116

117117
<details>
118118
<summary><strong><em>code</em></strong></summary>
@@ -150,8 +150,7 @@ new_observation <- test_matrix[1:2, , drop=FALSE]
150150
rownames(new_observation) <- c("id1", "id2")
151151

152152
# make a studio for the model
153-
modelStudio(explainer, new_observation,
154-
options = ms_options(margin_left = 140))
153+
modelStudio(explainer, new_observation)
155154
```
156155

157156
</details>
@@ -174,7 +173,7 @@ install.packages("reticulate")
174173

175174
### scikit-learn [dashboard](https://modelstudio.drwhy.ai/scikitlearn.html)
176175

177-
Make a studio for the regression `Pipeline SVR` model on `fifa` data.
176+
Make a studio for the regression `Pipeline SVR` model on the `fifa` data.
178177

179178
<details>
180179
<summary><strong><em>code</em></strong></summary>
@@ -217,15 +216,14 @@ explainer <- py_load_object("explainer_scikitlearn.pickle", pickle = "pickle")
217216

218217
# make a studio for the model
219218
library(modelStudio)
220-
modelStudio(explainer, B = 5,
221-
options = ms_options(margin_left = 160))
219+
modelStudio(explainer, B = 5)
222220
```
223221

224222
</details>
225223

226224
### lightgbm [dashboard](https://modelstudio.drwhy.ai/lightgbm.html)
227225

228-
Make a studio for the classification `Pipeline LGBMClassifier` model on `titanic` data.
226+
Make a studio for the classification `Pipeline LGBMClassifier` model on the `titanic` data.
229227

230228
<details>
231229
<summary><strong><em>code</em></strong></summary>

0 commit comments

Comments
 (0)