|
45 | 45 | #' }
|
46 | 46 | #' }
|
47 | 47 | #'
|
| 48 | +#' @references |
| 49 | +#' |
| 50 | +#' \itemize{ |
| 51 | +#' \item Wrapper for the function is implemented in \href{https://modeloriented.github.io/DALEX/}{\bold{DALEX}} |
| 52 | +#' \item Feature Importance, Ceteris Paribus, Partial Dependence and Accumulated Dependence plots |
| 53 | +#' are implemented in \href{https://modeloriented.github.io/ingredients/}{\bold{ingredients}} |
| 54 | +#' \item Break Down and Shapley Values plots are implemented in \href{https://modeloriented.github.io/iBreakDown/}{\bold{iBreakDown}} |
| 55 | +#' } |
| 56 | +#' |
| 57 | +#' @seealso |
| 58 | +#' Vignettes: \href{https://modeloriented.github.io/modelStudio/articles/vignette_examples.html}{\bold{modelStudio - R & python examples}} |
| 59 | +#' and \href{https://modeloriented.github.io/modelStudio/articles/vignette_modelStudio.html}{\bold{modelStudio - perks and features}} |
48 | 60 | #'
|
49 | 61 | #' @examples
|
50 | 62 | #' library("DALEX")
|
51 | 63 | #' library("modelStudio")
|
52 | 64 | #'
|
53 |
| -#' # Create a model |
| 65 | +#' # fit a model |
54 | 66 | #' model_apartments <- glm(m2.price ~. ,
|
55 | 67 | #' data = apartments)
|
56 | 68 | #'
|
57 |
| -#' # Wrap it into an explainer |
| 69 | +#' # create an explainer for the model |
58 | 70 | #' explainer_apartments <- DALEX::explain(model_apartments,
|
59 |
| -#' data = apartments[,-1], |
60 |
| -#' y = apartments[,1], |
61 |
| -#' verbose = FALSE) |
| 71 | +#' data = apartments, |
| 72 | +#' y = apartments$m2.price) |
62 | 73 | #'
|
63 |
| -#' # Pick some data points |
| 74 | +#' # pick observations |
64 | 75 | #' new_apartments <- apartments[1:2,]
|
65 | 76 | #' rownames(new_apartments) <- c("ap1","ap2")
|
66 | 77 | #'
|
67 |
| -#' # Modify default options |
| 78 | +#' # modify default options |
68 | 79 | #' op <- modelStudioOptions(
|
69 | 80 | #' show_subtitle = TRUE,
|
70 | 81 | #' bd_subtitle = "Hello World",
|
|
76 | 87 | #' bd_negative_color = "orange"
|
77 | 88 | #' )
|
78 | 89 | #'
|
79 |
| -#' # Make a studio for the model with modified option |
| 90 | +#' # make a studio for the model |
80 | 91 | #' modelStudio(explainer_apartments, new_apartments,
|
81 |
| -#' N = 100, B = 10, options = op, |
82 |
| -#' show_info = FALSE) |
| 92 | +#' N = 100, B = 10, options = op) |
83 | 93 | #'
|
84 | 94 | #' @export
|
85 | 95 | #' @rdname modelStudioOptions
|
|
0 commit comments