Skip to content

Commit d905694

Browse files
authored
Merge branch 'main' into uni_cox
2 parents 80d45bc + 17f93b3 commit d905694

32 files changed

+126
-16
lines changed

DESCRIPTION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ Collate:
5858
'FilterCorrelation.R'
5959
'FilterDISR.R'
6060
'FilterFindCorrelation.R'
61+
'FilterLearner.R'
6162
'FilterImportance.R'
6263
'FilterInformationGain.R'
6364
'FilterJMI.R'

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
- Fixed issue with `FilterPerformance` where the arg `measure` wasn't passed on
44
- Added `FilterUnivariateCox` (thanks to @bblodfon)
5+
- Parameter value `na.rm` is properly initialized to `TRUE` (thanks to @bblodfon)
6+
- Bugfix: property `missings` is now set correctly for `FilterFindCorrelation`
57

68
# mlr3filters 0.7.1
79

R/Filter.R

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,22 @@ Filter = R6Class("Filter",
212212
assert_ro_binding(rhs)
213213
get_properties = get0(".get_properties", private)
214214
if (is.null(get_properties)) character() else get_properties()
215+
},
216+
217+
#' @field hash (`character(1)`)\cr
218+
#' Hash (unique identifier) for this object.
219+
hash = function(rhs) {
220+
assert_ro_binding(rhs)
221+
calculate_hash(class(self), self$id, self$param_set$values, mget(private$.extra_hash, envir = self))
222+
},
223+
224+
#' @field phash (`character(1)`)\cr
225+
#' Hash (unique identifier) for this partial object, excluding some components
226+
#' which are varied systematically during tuning (parameter values) or feature
227+
#' selection (feature names).
228+
phash = function(rhs) {
229+
assert_ro_binding(rhs)
230+
calculate_hash(class(self), self$id, mget(private$.extra_hash, envir = self))
215231
}
216232
)
217233
)

R/FilterAUC.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#' `r format_bib("bommert_2020")`
1616
#'
1717
#' @family Filter
18+
#' @include Filter.R
1819
#' @template seealso_filter
1920
#' @export
2021
#' @examples

R/FilterAnova.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#' `r format_bib("bommert_2020")`
1616
#'
1717
#' @family Filter
18+
#' @include Filter.R
1819
#' @importFrom stats aov
1920
#' @template seealso_filter
2021
#' @export

R/FilterCMIM.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#'
1717
#' @template details_praznik
1818
#' @family Filter
19+
#' @include Filter.R
1920
#' @template seealso_filter
2021
#' @export
2122
#' @examples

R/FilterCarScore.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#' Argument `verbose` defaults to `FALSE`.
1212
#'
1313
#' @family Filter
14+
#' @include Filter.R
1415
#' @template seealso_filter
1516
#' @export
1617
#' @examples

R/FilterCarSurvScore.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#' `r format_bib("bommert_2021")`
1111
#'
1212
#' @family Filter
13+
#' @include Filter.R
1314
#' @template seealso_filter
1415
#' @export
1516
FilterCarSurvScore = R6Class("FilterCarSurvScore",

R/FilterCorrelation.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#' `r format_bib("bommert_2020")`
2121
#'
2222
#' @family Filter
23+
#' @include Filter.R
2324
#' @template seealso_filter
2425
#' @export
2526
#' @examples

R/FilterDISR.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#'
1717
#' @template details_praznik
1818
#' @family Filter
19+
#' @include Filter.R
1920
#' @template seealso_filter
2021
#' @export
2122
#' @examples

0 commit comments

Comments
 (0)