Skip to content

Commit 3c8da6b

Browse files
author
hbaniecki
committed
before CRAN
1 parent c98ba5f commit 3c8da6b

File tree

3 files changed

+54
-40
lines changed

3 files changed

+54
-40
lines changed

R/modelStudioOptions.R

+20-10
Original file line numberDiff line numberDiff line change
@@ -45,26 +45,37 @@
4545
#' }
4646
#' }
4747
#'
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}}
4860
#'
4961
#' @examples
5062
#' library("DALEX")
5163
#' library("modelStudio")
5264
#'
53-
#' # Create a model
65+
#' # fit a model
5466
#' model_apartments <- glm(m2.price ~. ,
5567
#' data = apartments)
5668
#'
57-
#' # Wrap it into an explainer
69+
#' # create an explainer for the model
5870
#' 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)
6273
#'
63-
#' # Pick some data points
74+
#' # pick observations
6475
#' new_apartments <- apartments[1:2,]
6576
#' rownames(new_apartments) <- c("ap1","ap2")
6677
#'
67-
#' # Modify default options
78+
#' # modify default options
6879
#' op <- modelStudioOptions(
6980
#' show_subtitle = TRUE,
7081
#' bd_subtitle = "Hello World",
@@ -76,10 +87,9 @@
7687
#' bd_negative_color = "orange"
7788
#' )
7889
#'
79-
#' # Make a studio for the model with modified option
90+
#' # make a studio for the model
8091
#' modelStudio(explainer_apartments, new_apartments,
81-
#' N = 100, B = 10, options = op,
82-
#' show_info = FALSE)
92+
#' N = 100, B = 10, options = op)
8393
#'
8494
#' @export
8595
#' @rdname modelStudioOptions

man/modelStudio.Rd

+14-20
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/modelStudioOptions.Rd

+20-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)