Skip to content

Commit c4b9a26

Browse files
committed
fix cran checks
1 parent 2bd3a6b commit c4b9a26

File tree

4 files changed

+23
-24
lines changed

4 files changed

+23
-24
lines changed

R/FilterAUC.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#' ```
1414
#'
1515
#' @description
16-
#' Area under the (ROC) Curve filter, analogously to [mlr3measures::auc()] from \CRANpkg{mlr3meaures}.
16+
#' Area under the (ROC) Curve filter, analogously to [mlr3measures::auc()] from \CRANpkg{mlr3measures}.
1717
#' Missing values of the features are removed before calculating the AUC.
1818
#' If the AUC is undefined for the input, it is set to 0.5 (random classifier).
1919
#' The absolute value of the difference between the AUC and 0.5 is used as final filter value.

README.Rmd

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ _mlr3filters_ adds filters, feature selection methods and embedded feature selec
88

99
[![Travis build status](https://travis-ci.org/mlr-org/mlr3filters.svg?branch=master)](https://travis-ci.org/mlr-org/mlr3filters)
1010
[![CRAN Status Badge](https://www.r-pkg.org/badges/version-ago/mlr3filters)](https://cran.r-project.org/package=mlr3filters)
11-
[![cran checks](https://cranchecks.info/badges/worst/mlr3filters)](https://cran.r-project.org/web/checks/check_results_mlr3filters.html)
12-
[![CRAN Downloads](https://cranlogs.r-pkg.org/badges/mlr3filters)](https://cran.rstudio.com/web/packages/mlr3filters/index.html)
11+
[![CRAN checks](https://cranchecks.info/badges/worst/mlr3filters)](https://cran.r-project.org/web/checks/check_results_mlr3filters.html)
1312
[![Coverage status](https://codecov.io/gh/mlr-org/mlr3filters/branch/master/graph/badge.svg)](https://codecov.io/github/mlr-org/mlr3filters?branch=master)
1413
[![StackOverflow](https://img.shields.io/badge/stackoverflow-mlr3-orange.svg)](https://stackoverflow.com/questions/tagged/mlr3)
1514

@@ -79,7 +78,7 @@ tab = as.data.table(mlr_learners)
7978
tab[sapply(properties, is.element, el = "importance"), key]
8079
```
8180

82-
If your learner is not listed here but capable of extracting variable importance from the fitted model, the reason is most likely that it is not yet integrated in [mlr3learners](https://github.com/mlr-org/mlr3learners) or [mlr3extralearners](https://github.com/mlr-org/mlr3extralearners).
81+
If your learner is not listed here but capable of extracting variable importance from the fitted model, the reason is most likely that it is not yet integrated in the package [mlr3learners](https://github.com/mlr-org/mlr3learners) or the [extra learner organization](https://github.com/mlr3learners).
8382
Please open an issue so we can add your package.
8483

8584
Some learners need to have their variable importance measure "activated" during learner creation.

README.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@ feature selection methods of algorithms to *mlr3*.
88
status](https://travis-ci.org/mlr-org/mlr3filters.svg?branch=master)](https://travis-ci.org/mlr-org/mlr3filters)
99
[![CRAN Status
1010
Badge](https://www.r-pkg.org/badges/version-ago/mlr3filters)](https://cran.r-project.org/package=mlr3filters)
11-
[![cran
12-
checks](https://cranchecks.info/badges/worst/mlr3filters)](https://cran.r-project.org/web/checks/check_results_mlr3filters.html)
1311
[![CRAN
14-
Downloads](https://cranlogs.r-pkg.org/badges/mlr3filters)](https://cran.rstudio.com/web/packages/mlr3filters/index.html)
12+
checks](https://cranchecks.info/badges/worst/mlr3filters)](https://cran.r-project.org/web/checks/check_results_mlr3filters.html)
1513
[![Coverage
1614
status](https://codecov.io/gh/mlr-org/mlr3filters/branch/master/graph/badge.svg)](https://codecov.io/github/mlr-org/mlr3filters?branch=master)
1715
[![StackOverflow](https://img.shields.io/badge/stackoverflow-mlr3-orange.svg)](https://stackoverflow.com/questions/tagged/mlr3)
@@ -43,15 +41,16 @@ filter = flt("auc")
4341
as.data.table(filter$calculate(task))
4442
```
4543

46-
## feature score
47-
## 1: glucose 0.28961567
48-
## 2: age 0.18694030
49-
## 3: mass 0.17702985
50-
## 4: pregnant 0.11951493
51-
## 5: pressure 0.10810075
52-
## 6: pedigree 0.10620149
53-
## 7: triceps 0.10125373
54-
## 8: insulin 0.07975746
44+
## feature score
45+
## <char> <num>
46+
## 1: glucose 0.2927906
47+
## 2: insulin 0.2316288
48+
## 3: mass 0.1870358
49+
## 4: age 0.1869403
50+
## 5: triceps 0.1625115
51+
## 6: pregnant 0.1195149
52+
## 7: pressure 0.1075760
53+
## 8: pedigree 0.1062015
5554

5655
### Implemented Filters
5756

@@ -79,16 +78,16 @@ as.data.table(filter$calculate(task))
7978
The following learners allow the extraction of variable importance and
8079
therefore are supported by `FilterImportance`:
8180

82-
## [1] "classif.featureless" "classif.ranger" "classif.rpart"
83-
## [4] "classif.xgboost" "regr.featureless" "regr.ranger"
84-
## [7] "regr.rpart" "regr.xgboost"
81+
## [1] "classif.featureless" "classif.ranger" "classif.rpart"
82+
## [4] "classif.xgboost" "regr.featureless" "regr.lm"
83+
## [7] "regr.ranger" "regr.rpart" "regr.xgboost"
8584

8685
If your learner is not listed here but capable of extracting variable
8786
importance from the fitted model, the reason is most likely that it is
88-
not yet integrated in
89-
[mlr3learners](https://github.com/mlr-org/mlr3learners) or
90-
[mlr3extralearners](https://github.com/mlr-org/mlr3extralearners).
91-
Please open an issue so we can add your package.
87+
not yet integrated in the package
88+
[mlr3learners](https://github.com/mlr-org/mlr3learners) or the [extra
89+
learner organization](https://github.com/mlr3learners). Please open an
90+
issue so we can add your package.
9291

9392
Some learners need to have their variable importance measure “activated”
9493
during learner creation. For example, to use the “impurity” measure of
@@ -105,6 +104,7 @@ head(as.data.table(filter), 3)
105104
```
106105

107106
## feature score
107+
## <char> <num>
108108
## 1: Petal.Width 44.588117
109109
## 2: Petal.Length 42.501367
110110
## 3: Sepal.Length 9.898418

man/FilterAUC.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)