Skip to content

Commit fc9370c

Browse files
authored
release: 1.4.0 (#143)
* release: 1.4.0 * ... * ... * ... * ...
1 parent 8bfa88f commit fc9370c

File tree

7 files changed

+60
-60
lines changed

7 files changed

+60
-60
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: mlr3fselect
22
Title: Feature Selection for 'mlr3'
3-
Version: 1.3.0.9000
3+
Version: 1.4.0
44
Authors@R: c(
55
person("Marc", "Becker", , "[email protected]", role = c("aut", "cre"),
66
comment = c(ORCID = "0000-0002-8115-0400")),
@@ -24,7 +24,7 @@ URL: https://mlr3fselect.mlr-org.com,
2424
https://github.com/mlr-org/mlr3fselect
2525
BugReports: https://github.com/mlr-org/mlr3fselect/issues
2626
Depends:
27-
mlr3 (>= 0.23.0),
27+
mlr3 (>= 1.0.1),
2828
R (>= 3.1.0)
2929
Imports:
3030
bbotk (>= 1.6.0),

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# mlr3fselect (development version)
1+
# mlr3fselect 1.4.0
22

33
* feat: Introduce asynchronous optimization with the `FSelectorAsync` and `FSelectInstanceAsync*` classes.
44
* feat: Add `max_nfeatures` argument in the `pareto_front()` and `knee_points()` methods of an `EnsembleFSResult()`.

R/fselect.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#' It executes the feature selection with the [FSelector] (`fselector`) and returns the result with the feature selection instance (`$result`).
99
#' The [ArchiveBatchFSelect] and [ArchiveAsyncFSelect] (`$archive`) stores all evaluated feature subsets and performance scores.
1010
#'
11-
#' You can find an overview of all feature selectors on our [website](https://mlr-org.com/feature-selectors.html).
11+
#' You can find an overview of all feature selectors on our [website](https://mlr-org.com/fselectors.html).
1212
#'
1313
#' @details
1414
#' The [mlr3::Task], [mlr3::Learner], [mlr3::Resampling], [mlr3::Measure] and [bbotk::Terminator] are used to construct a [FSelectInstanceBatchSingleCrit].

README.Rmd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ Package website: [release](https://mlr3fselect.mlr-org.com/) | [dev](https://mlr
2323
<!-- badges: start -->
2424
[![r-cmd-check](https://github.com/mlr-org/mlr3fselect/actions/workflows/r-cmd-check.yml/badge.svg)](https://github.com/mlr-org/mlr3fselect/actions/workflows/r-cmd-check.yml)
2525
[![CRAN Status](https://www.r-pkg.org/badges/version/mlr3fselect)](https://cran.r-project.org/package=mlr3fselect)
26-
[![StackOverflow](https://img.shields.io/badge/stackoverflow-mlr3-orange.svg)](https://stackoverflow.com/questions/tagged/mlr3)
2726
[![Mattermost](https://img.shields.io/badge/chat-mattermost-orange.svg)](https://lmmisld-lmu-stats-slds.srv.mwn.de/mlr_invite/)
2827
<!-- badges: end -->
2928

README.md

Lines changed: 55 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11

22
# mlr3fselect <img src="man/figures/logo.png" align="right" width = "120" />
33

4-
Package website: [release](https://mlr3fselect.mlr-org.com/) |
4+
Package website: [release](https://mlr3fselect.mlr-org.com/) \|
55
[dev](https://mlr3fselect.mlr-org.com/dev/)
66

77
<!-- badges: start -->
88

99
[![r-cmd-check](https://github.com/mlr-org/mlr3fselect/actions/workflows/r-cmd-check.yml/badge.svg)](https://github.com/mlr-org/mlr3fselect/actions/workflows/r-cmd-check.yml)
1010
[![CRAN
1111
Status](https://www.r-pkg.org/badges/version/mlr3fselect)](https://cran.r-project.org/package=mlr3fselect)
12-
[![StackOverflow](https://img.shields.io/badge/stackoverflow-mlr3-orange.svg)](https://stackoverflow.com/questions/tagged/mlr3)
1312
[![Mattermost](https://img.shields.io/badge/chat-mattermost-orange.svg)](https://lmmisld-lmu-stats-slds.srv.mwn.de/mlr_invite/)
1413
<!-- badges: end -->
1514

@@ -29,24 +28,24 @@ The package is built on the optimization framework
2928
There are several section about feature selection in the
3029
[mlr3book](https://mlr3book.mlr-org.com).
3130

32-
- Getting started with [wrapper feature
33-
selection](https://mlr3book.mlr-org.com/chapters/chapter6/feature_selection.html#sec-fs-wrapper).
34-
- Do a [sequential forward
35-
selection](https://mlr3book.mlr-org.com/chapters/chapter6/feature_selection.html#sec-fs-wrapper-example)
36-
Palmer Penguins data set.
37-
- Optimize [multiple performance
38-
measures](https://mlr3book.mlr-org.com/chapters/chapter6/feature_selection.html#sec-multicrit-featsel).
39-
- Estimate Model Performance with [nested
40-
resampling](https://mlr3book.mlr-org.com/chapters/chapter6/feature_selection.html#sec-autofselect).
31+
- Getting started with [wrapper feature
32+
selection](https://mlr3book.mlr-org.com/chapters/chapter6/feature_selection.html#sec-fs-wrapper).
33+
- Do a [sequential forward
34+
selection](https://mlr3book.mlr-org.com/chapters/chapter6/feature_selection.html#sec-fs-wrapper-example)
35+
Palmer Penguins data set.
36+
- Optimize [multiple performance
37+
measures](https://mlr3book.mlr-org.com/chapters/chapter6/feature_selection.html#sec-multicrit-featsel).
38+
- Estimate Model Performance with [nested
39+
resampling](https://mlr3book.mlr-org.com/chapters/chapter6/feature_selection.html#sec-autofselect).
4140

4241
The [gallery](https://mlr-org.com/gallery.html) features a collection of
4342
case studies and demos about optimization.
4443

45-
- Utilize the built-in feature importance of models with [Recursive
46-
Feature
47-
Elimination](https://mlr-org.com/gallery/optimization/2023-02-07-recursive-feature-elimination/).
48-
- Run a feature selection with [Shadow Variable
49-
Search](https://mlr-org.com/gallery/optimization/2023-02-01-shadow-variable-search/).
44+
- Utilize the built-in feature importance of models with [Recursive
45+
Feature
46+
Elimination](https://mlr-org.com/gallery/optimization/2023-02-07-recursive-feature-elimination/).
47+
- Run a feature selection with [Shadow Variable
48+
Search](https://mlr-org.com/gallery/optimization/2023-02-01-shadow-variable-search/).
5049

5150
The [cheatsheet](https://cheatsheets.mlr-org.com/mlr3fselect.pdf)
5251
summarizes the most important functions of mlr3fselect.
@@ -76,16 +75,18 @@ library("mlr3verse")
7675
tsk("spam")
7776
```
7877

79-
## <TaskClassif:spam> (4601 x 58): HP Spam Detection
80-
## * Target: type
81-
## * Properties: twoclass
82-
## * Features (57):
83-
## - dbl (57): address, addresses, all, business, capitalAve, capitalLong, capitalTotal,
84-
## charDollar, charExclamation, charHash, charRoundbracket, charSemicolon,
85-
## charSquarebracket, conference, credit, cs, data, direct, edu, email, font, free,
86-
## george, hp, hpl, internet, lab, labs, mail, make, meeting, money, num000, num1999,
87-
## num3d, num415, num650, num85, num857, order, original, our, over, parts, people, pm,
88-
## project, re, receive, remove, report, table, technology, telnet, will, you, your
78+
##
79+
## ── <TaskClassif> (4601x58): HP Spam Detection ──────────────────────────────────────────────────────
80+
## • Target: type
81+
## • Target classes: spam (positive class, 39%), nonspam (61%)
82+
## • Properties: twoclass
83+
## • Features (57):
84+
## • dbl (57): address, addresses, all, business, capitalAve, capitalLong, capitalTotal, charDollar,
85+
## charExclamation, charHash, charRoundbracket, charSemicolon, charSquarebracket, conference,
86+
## credit, cs, data, direct, edu, email, font, free, george, hp, hpl, internet, lab, labs, mail,
87+
## make, meeting, money, num000, num1999, num3d, num415, num650, num85, num857, order, original,
88+
## our, over, parts, people, pm, project, re, receive, remove, report, table, technology, telnet,
89+
## will, you, your
8990

9091
We construct an instance with the `fsi()` function. The instance
9192
describes the optimization problem.
@@ -103,7 +104,7 @@ instance
103104

104105
## <FSelectInstanceBatchSingleCrit>
105106
## * State: Not optimized
106-
## * Objective: <ObjectiveFSelect:classif.svm_on_spam>
107+
## * Objective: <ObjectiveFSelectBatch:classif.svm_on_spam>
107108
## * Terminator: <TerminatorEvals>
108109

109110
We select a simple random search as the optimization algorithm.
@@ -132,19 +133,19 @@ instance.
132133
instance$result_feature_set
133134
```
134135

135-
## [1] "address" "addresses" "all" "business"
136-
## [5] "capitalAve" "capitalLong" "capitalTotal" "charDollar"
137-
## [9] "charExclamation" "charHash" "charRoundbracket" "charSemicolon"
138-
## [13] "charSquarebracket" "conference" "credit" "cs"
139-
## [17] "data" "direct" "edu" "email"
140-
## [21] "font" "free" "george" "hp"
141-
## [25] "internet" "lab" "labs" "mail"
142-
## [29] "make" "meeting" "money" "num000"
143-
## [33] "num1999" "num3d" "num415" "num650"
144-
## [37] "num85" "num857" "order" "our"
145-
## [41] "parts" "people" "pm" "project"
146-
## [45] "re" "receive" "remove" "report"
147-
## [49] "table" "technology" "telnet" "will"
136+
## [1] "address" "addresses" "all" "business"
137+
## [5] "capitalAve" "capitalLong" "capitalTotal" "charDollar"
138+
## [9] "charExclamation" "charHash" "charRoundbracket" "charSemicolon"
139+
## [13] "charSquarebracket" "conference" "credit" "cs"
140+
## [17] "data" "direct" "edu" "email"
141+
## [21] "font" "free" "george" "hp"
142+
## [25] "internet" "lab" "labs" "mail"
143+
## [29] "make" "meeting" "money" "num000"
144+
## [33] "num1999" "num3d" "num415" "num650"
145+
## [37] "num85" "num857" "order" "our"
146+
## [41] "parts" "people" "pm" "project"
147+
## [45] "re" "receive" "remove" "report"
148+
## [49] "table" "technology" "telnet" "will"
148149
## [53] "you" "your"
149150

150151
And the corresponding measured performance.
@@ -153,7 +154,7 @@ And the corresponding measured performance.
153154
instance$result_y
154155
```
155156

156-
## classif.ce
157+
## classif.ce
157158
## 0.07042005
158159

159160
The archive contains all evaluated hyperparameter configurations.
@@ -162,19 +163,19 @@ The archive contains all evaluated hyperparameter configurations.
162163
as.data.table(instance$archive)
163164
```
164165

165-
## address addresses all business capitalAve capitalLong capitalTotal charDollar charExclamation
166-
## 1: TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE
167-
## 2: TRUE TRUE TRUE FALSE FALSE TRUE TRUE TRUE TRUE
168-
## 3: TRUE TRUE FALSE FALSE TRUE TRUE TRUE TRUE TRUE
169-
## 4: TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE
170-
## 5: FALSE FALSE FALSE FALSE FALSE FALSE FALSE TRUE FALSE
171-
## ---
172-
## 16: FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
173-
## 17: FALSE FALSE FALSE TRUE TRUE TRUE FALSE FALSE TRUE
174-
## 18: FALSE FALSE TRUE TRUE FALSE FALSE FALSE TRUE FALSE
175-
## 19: TRUE TRUE TRUE TRUE FALSE TRUE TRUE TRUE TRUE
176-
## 20: TRUE FALSE TRUE FALSE FALSE TRUE FALSE TRUE FALSE
177-
## 56 variables not shown: [charHash, charRoundbracket, charSemicolon, charSquarebracket, conference, credit, cs, data, direct, edu, ...]
166+
## address addresses all business capitalAve capitalLong capitalTotal charDollar
167+
## 1: TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE
168+
## 2: TRUE TRUE TRUE FALSE FALSE TRUE TRUE TRUE
169+
## 3: TRUE TRUE FALSE FALSE TRUE TRUE TRUE TRUE
170+
## 4: TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE
171+
## 5: FALSE FALSE FALSE FALSE FALSE FALSE FALSE TRUE
172+
## ---
173+
## 16: FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
174+
## 17: FALSE FALSE FALSE TRUE TRUE TRUE FALSE FALSE
175+
## 18: FALSE FALSE TRUE TRUE FALSE FALSE FALSE TRUE
176+
## 19: TRUE TRUE TRUE TRUE FALSE TRUE TRUE TRUE
177+
## 20: TRUE FALSE TRUE FALSE FALSE TRUE FALSE TRUE
178+
## 58 variables not shown: [charExclamation, charHash, charRoundbracket, charSemicolon, charSquarebracket, conference, credit, cs, data, direct, ...]
178179

179180
We fit a final model with the optimized feature set to make predictions
180181
on new data.

man/fselect.Rd

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

0 commit comments

Comments
 (0)