Skip to content

Commit 77ea3ad

Browse files
committed
minor fix to model_performance/profile as per r-devel change
1 parent c4791ab commit 77ea3ad

4 files changed

Lines changed: 8 additions & 5 deletions

File tree

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: DALEX
22
Title: moDel Agnostic Language for Exploration and eXplanation
3-
Version: 2.5.3
3+
Version: 2.5.4
44
Authors@R: c(person("Przemyslaw", "Biecek", email = "przemyslaw.biecek@gmail.com", role = c("aut", "cre"),
55
comment = c(ORCID = "0000-0001-8423-1823")),
66
person("Szymon", "Maksymiuk", role = "aut",

NEWS.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
DALEX (development)
1+
DALEX 2.5.4
22
---------------------------------------------------------------
3-
* [@mayer79](https://github.com/mayer79) fixed the use of the deprecated `size` argument in `ggplot2` version 4, which is now called `linewidth` ([#576](https://github.com/ModelOriented/DALEX/issues/576))
3+
* fixed R-devel warning by replacing the deprecated `structure(*, .Names = )` with `structure(*, names = )` in `model_performance()` and `model_profile()`/`variable_profile()` (R-devel r90216 deprecates the compact `.Names`/`.Dim`/`.Label` attribute names in `structure()`)
44

5+
DALEX 2.5.3
6+
---------------------------------------------------------------
7+
* [@mayer79](https://github.com/mayer79) fixed the use of the deprecated `size` argument in `ggplot2` version 4, which is now called `linewidth` ([#576](https://github.com/ModelOriented/DALEX/issues/576))
58

69
DALEX 2.5.2
710
---------------------------------------------------------------

R/model_performance.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ model_performance <- function(explainer, ..., cutoff = 0.5) {
119119
residuals$label <- explainer$label
120120

121121
structure(list(residuals, measures, type),
122-
.Names = c("residuals", "measures", "type"),
122+
names = c("residuals", "measures", "type"),
123123
class = "model_performance")
124124
}
125125

R/model_profile.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ model_profile <- function(explainer, variables = NULL, N = 100, ..., groups = NU
9898

9999
structure(
100100
list(cp_profiles, agr_profiles, color),
101-
.Names = c("cp_profiles", "agr_profiles", "color"),
101+
names = c("cp_profiles", "agr_profiles", "color"),
102102
class = "model_profile")
103103

104104
}

0 commit comments

Comments
 (0)