Skip to content

Commit

Permalink
compatibility: mlr3 0.22.0
Browse files Browse the repository at this point in the history
  • Loading branch information
be-marc committed Nov 7, 2024
1 parent a43d4e3 commit b6db512
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 39 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Config/testthat/edition: 3
Encoding: UTF-8
NeedsCompilation: no
Roxygen: list(markdown = TRUE, r6 = TRUE)
RoxygenNote: 7.3.1
RoxygenNote: 7.3.2
Collate:
'Filter.R'
'mlr_filters.R'
Expand Down
66 changes: 34 additions & 32 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,71 +1,73 @@
# mlr3filters (development version)

* compatibility: mlr3 0.22.0

# mlr3filters 0.8.0

- Added `FilterBoruta`
- Fixed issue with `FilterPerformance` where the arg `measure` wasn't passed on
- 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
* Added `FilterBoruta`
* Fixed issue with `FilterPerformance` where the arg `measure` wasn't passed on
* 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

- Tagged multiple filters to be able of gracefully handling missing values.
- Added more supported feature types to FilterCarScore.
- Improved documentation.
* Tagged multiple filters to be able of gracefully handling missing values.
* Added more supported feature types to FilterCarScore.
* Improved documentation.

# mlr3filters 0.7.0

- Features are now checked for missing values to improve error messages (#140)
- Removed deprecated functions
- Use featureless learner in defaults (#124)
- Field `task_type` of class `Filter` has been renamed to `task_types`.
* Features are now checked for missing values to improve error messages (#140)
* Removed deprecated functions
* Use featureless learner in defaults (#124)
* Field `task_type` of class `Filter` has been renamed to `task_types`.

# mlr3filters 0.6.0

- Add `FilterCarSurvScore` (#120, @mllg)
- Use featureless learner instead of rpart as default learner for `FilterImportance` and `FilterPerformance` (#124)
- Add documentation for PipeOpFilter
- Add mlr3pipelines examples to help pages (#135, @sebffischer)
- Add `label` arg to `Filter` class (#121, @mllg)
* Add `FilterCarSurvScore` (#120, @mllg)
* Use featureless learner instead of rpart as default learner for `FilterImportance` and `FilterPerformance` (#124)
* Add documentation for PipeOpFilter
* Add mlr3pipelines examples to help pages (#135, @sebffischer)
* Add `label` arg to `Filter` class (#121, @mllg)

# mlr3filters 0.5.0

- Add references to benchmark paper and praznik paper (#104)
- New filter `FilterSelectedFeatures` which makes use of embedded feature selection methods of learners.
* Add references to benchmark paper and praznik paper (#104)
* New filter `FilterSelectedFeatures` which makes use of embedded feature selection methods of learners.
See the help page for more details (#102)
- Allow `NA` as task type.
* Allow `NA` as task type.
This makes it possible to use other tasks than `"regr"` or `"classif"` for certain filters, e.g. `FilterVariance` (#106)


# mlr3filters 0.4.2

- Fixes an issue where argument `nfeat` was not passed down to {praznik} filters (#97)
* Fixes an issue where argument `nfeat` was not passed down to {praznik} filters (#97)


# mlr3filters 0.4.1

- Disable threading in praznik filters by default (5f24742e9b92f6a5f828c4f755be3fb53427afdb, @mllg)
* Disable threading in praznik filters by default (5f24742e9b92f6a5f828c4f755be3fb53427afdb, @mllg)
Enable by setting hyperparameter `threads` >= 2 or to `0` for auto-detection of available cores (#93, @mllg)
- Document return type of private `.calculate()` (#92, @mllg)
- Allow `NA` in returned vectors.
* Document return type of private `.calculate()` (#92, @mllg)
* Allow `NA` in returned vectors.
Features with missing values as well as features with no calculated score are automatically ranked last, in a random order. (#92, @mllg)
- praznik filters now also support `regr` Tasks (#90, @bommert)
* praznik filters now also support `regr` Tasks (#90, @bommert)


# mlr3filters 0.4.0

- Add ReliefF filter (#86)
- Fix praznik scores calculation: praznik filters are not monotone in the selected features due to their iterative fashion. E.g., the first selected feature can have a score of 5, the second selected feature a score of 10. This version replaces the praznik scores by a simple sequence (#87, @mllg)
* Add ReliefF filter (#86)
* Fix praznik scores calculation: praznik filters are not monotone in the selected features due to their iterative fashion. E.g., the first selected feature can have a score of 5, the second selected feature a score of 10. This version replaces the praznik scores by a simple sequence (#87, @mllg)


# mlr3filters 0.3.0

- Add Permutation (#70)
- Add `flts()` (#77)
- Github Actions: set cron job to 4am to avoid potential download issues with R-devel on macOS
- Filters now have a help method `$help()` which opens the respective help page (#68)
* Add Permutation (#70)
* Add `flts()` (#77)
* Github Actions: set cron job to 4am to avoid potential download issues with R-devel on macOS
* Filters now have a help method `$help()` which opens the respective help page (#68)


# mlr3filters 0.2.0
Expand Down
2 changes: 1 addition & 1 deletion R/FilterCorrelation.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#' as.data.table(filter)
#' if (mlr3misc::require_namespaces(c("mlr3pipelines", "rpart"), quietly = TRUE)) {
#' library("mlr3pipelines")
#' task = mlr3::tsk("boston_housing")
#' task = mlr3::tsk("mtcars")
#'
#' # Note: `filter.frac` is selected randomly and should be tuned.
#'
Expand Down
5 changes: 2 additions & 3 deletions man/flt.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/mlr_filters_correlation.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion tests/testthat/test_filter_regr.R
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ test_that("filters throw errors on missing values", {
})

test_that("Errors for unsupported features", {
task = tsk("boston_housing")
skip_if("ames_housing" %nin% mlr_tasks$keys())
task = tsk("ames_housing")
filters = mlr_filters$mget(mlr_filters$keys())

# supported: numeric, integer
Expand Down
2 changes: 2 additions & 0 deletions tests/testthat/test_filter_surv.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,5 @@ test_that("filters throw errors on missing values", {
}
}
})


0 comments on commit b6db512

Please sign in to comment.