Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3428677

Browse files
committed
typos
1 parentc170a34 commit3428677

14 files changed

+30
-29
lines changed

‎R/arena.R‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ print.arena_live <- function(x, ...) {
9797
#' calculated on demand, after calling \code{arena_run}.
9898
#'
9999
#' @param arena live or static arena object
100-
#' @param explainer Explainer createdusign \code{DALEX::explain}
100+
#' @param explainer Explainer createdusing \code{DALEX::explain}
101101
#' @return Updated arena object
102102
#' @export
103103
arena_push_model<-function(arena,explainer) {
@@ -152,8 +152,8 @@ arena_push_model.arena_live <- function(arena, explainer) {
152152
#' models. If arena is live, then plots will be calculated on demand,
153153
#' after calling \code{arena_run}.
154154
#'
155-
#' @param arena live or staticareana object
156-
#' @param observationsdataframe of new observations
155+
#' @param arena live or staticarena object
156+
#' @param observationsdata frame of new observations
157157
#' @return Updated arena object
158158
#' @export
159159
arena_push_observations<-function(arena,observations) {
@@ -201,7 +201,7 @@ arena_push_observations.arena_live <- function(arena, observations) {
201201
#' Upload generated json file from static arena
202202
#'
203203
#' By default function opens browser with new arena session. Appending data to
204-
#' already existing session is also possibleusign argument \code{append_data}
204+
#' already existing session is also possibleusing argument \code{append_data}
205205
#'
206206
#' @param arena Static arena object
207207
#' @param open_browser Whether to open browser with new session

‎R/live.R‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#' Run server providing data for live Arena
22
#'
33
#' By default function opens browser with new arena session. Appending data to
4-
#' already existing session is also possibleusign argument \code{append_data}
4+
#' already existing session is also possibleusing argument \code{append_data}
55
#'
66
#' @param arena Live arena object
77
#' @param port server port

‎R/plots.R‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ get_local_plots <- function(explainer, observations, params) {
33
vars<- intersect(names(is_y[!is_y]), colnames(observations))
44
plots<-list()
55

6-
# observationswas validated and have min 1 row
6+
# observationswere validated and have min 1 row
77
obs_list<- lapply(1:nrow(observations),function(i)observations[i,vars])
88

99
bd<-parallel::mclapply(obs_list,function(o) {
@@ -82,11 +82,12 @@ get_ceteris_paribus <- function(explainer, observation, variable, params) {
8282
})
8383
output
8484
}
85+
8586
get_break_down<-function(explainer,observation,params) {
8687
output<-NULL
8788
tryCatch({
8889
bd<-iBreakDown::local_attributions(explainer,observation)
89-
#Removeintercept and predictionrow
90+
#remove rows:intercept and prediction
9091
vars_index<-2:(length(bd$variable)-1)
9192
output<-list(
9293
plotComponent="Breakdown",
@@ -183,7 +184,7 @@ get_partial_dependence <- function(explainer, variable, params) {
183184

184185
#' Internal function for calculating feature importance
185186
#'
186-
#' @param explainer Explainer createdusign \code{DALEX::explain}
187+
#' @param explainer Explainer createdusing \code{DALEX::explain}
187188
#' @param vars Variables names for which feature importance should be calculated
188189
#' @param params Params from arena object
189190
#' @importFrom stats quantile
@@ -240,7 +241,7 @@ get_feature_importance <- function(explainer, vars, params) {
240241

241242
#' Internal function for calculating Shapley Values
242243
#'
243-
#' @param explainer Explainer createdusign \code{DALEX::explain}
244+
#' @param explainer Explainer createdusing \code{DALEX::explain}
244245
#' @param observation One row data frame observation to calculate Shapley Values
245246
#' @param params Params from arena object
246247
#' @importFrom stats quantile

‎R/utlis.R‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#' Checks if it is safe do add new observations to arena object
1+
#' Checks if it is safe do add new observations tothearena object
22
#'
3-
#' Function checks if rowname of each row is notalreadyused
3+
#' Function checks if rowname of each row is notalready used
44
#'
55
#' @param arena live or static arena object
66
#' @param observations data frame of new observations
@@ -14,11 +14,11 @@ validate_new_observations <- function(arena, observations) {
1414
}
1515
}
1616

17-
#' Checks if it is safe do add new model to arena object
17+
#' Checks if it is safe do addanew model to the arena object
1818
#'
1919
#' Function checks if label is not already used
2020
#' @param arena live or static arena object
21-
#' @param explainer Explainer createdusign \code{DALEX::explain}
21+
#' @param explainer Explainer createdusing \code{DALEX::explain}
2222
#' @importFrom methods is
2323
validate_new_model<-function(arena,explainer) {
2424
if (is.null(explainer)||!is(explainer,"explainer")) {
@@ -30,7 +30,7 @@ validate_new_model <- function(arena, explainer) {
3030
}
3131
}
3232

33-
#'Genarates list of rownames of each observation from each batch
33+
#'Generates list of rownames of each observation from each batch
3434
#'
3535
#' @param arena live or static arena object
3636
get_observations_list<-function(arena) {

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![Codecov test coverage](https://codecov.io/gh/ModelOriented/ArenaR/branch/master/graph/badge.svg)](https://codecov.io/gh/ModelOriented/ArenaR?branch=master)
44
[![R build status](https://github.com/ModelOriented/ArenaR/workflows/R-CMD-check/badge.svg)](https://github.com/ModelOriented/ArenaR/actions)
55

6-
##Examples generatedusign ArenaR
6+
##Examples generatedusing ArenaR
77
[Apartments from 2009-2010 price per m2](https://arena.drwhy.ai/?data=https://gist.githubusercontent.com/piotrpiatyszek/0129c6dce4c332dccb820b2e709465f3/raw/9644f61d9c977f5c8a4634ad633bb11f65a71efa/data.json)
88
[FIFA 20 Players value](https://arena.drwhy.ai/?data=https://gist.githubusercontent.com/piotrpiatyszek/8f93ce2e36adea23a02ceceed0b33882/raw/a1f15984e628c33381b1988e3b7766f1d478d9ab/data.json)
99

@@ -17,7 +17,7 @@ devtools::install_github("ModelOriented/ArenaR")
1717
###Articles
1818
[Create Live Arena](https://arenar.drwhy.ai/articles/articles/arena_live.html)
1919
[Create Static Arena](https://arenar.drwhy.ai/articles/articles/arena_static.html)
20-
[Usign ArenaR with classificators](https://arenar.drwhy.ai/articles/articles/classification.html)
20+
[Using ArenaR with classificators](https://arenar.drwhy.ai/articles/articles/classification.html)
2121

2222
###Live version - fast for testing on huge data frames
2323
```r

‎man/arena_push_model.Rd‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎man/arena_push_observations.Rd‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎man/arena_run.Rd‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎man/arena_upload.Rd‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎man/get_feature_importance.Rd‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp