diff --git a/NEWS.md b/NEWS.md index ebbef326..db003b42 100644 --- a/NEWS.md +++ b/NEWS.md @@ -7,6 +7,7 @@ - Added `FilterUnivariateCox` (thanks to @bblodfon) - Parameter value `na.rm` is properly initialized to `TRUE` (thanks to @bblodfon) - Bugfix: property `missings` is now set correctly for `FilterFindCorrelation` +- Bugfix: `$hash` now works for `Filter`s # mlr3filters 0.7.1 diff --git a/R/Filter.R b/R/Filter.R index 886ad259..01a0aefa 100644 --- a/R/Filter.R +++ b/R/Filter.R @@ -229,6 +229,10 @@ Filter = R6Class("Filter", assert_ro_binding(rhs) calculate_hash(class(self), self$id, mget(private$.extra_hash, envir = self)) } + ), + + private = list( + .extra_hash = character() ) )