Skip to content

Commit 03d3c94

Browse files
committed
refactor id name for readability
1 parent 256aba7 commit 03d3c94

26 files changed

+37
-37
lines changed

R/FilterUnivariateCox.R

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#' @title Univariate Cox Survival Filter
22
#'
3-
#' @name mlr_filters_univariatecox
3+
#' @name mlr_filters_univariate_cox
44
#'
55
#' @description Calculates scores for assessing the relationship between
66
#' individual features and the time-to-event outcome (right-censored survival
@@ -34,7 +34,7 @@
3434
#' task = enc$train(list(task))[[1L]]
3535
#'
3636
#' # simple filter use
37-
#' filter = flt("univariatecox")
37+
#' filter = flt("univariate_cox")
3838
#' filter$calculate(task)
3939
#' as.data.table(filter)
4040
#'
@@ -49,14 +49,14 @@
4949
#' cutoff = -log10(0.05) # ~1.3
5050
#'
5151
#' graph =
52-
#' po("filter", filter = flt("univariatecox"), filter.cutoff = cutoff) %>>%
52+
#' po("filter", filter = flt("univariate_cox"), filter.cutoff = cutoff) %>>%
5353
#' po("learner", lrn("surv.coxph"))
5454
#' learner = as_learner(graph)
5555
#'
5656
#' learner$train(task)
5757
#'
5858
#' # univariate cox filter scores
59-
#' learner$model$surv.univariatecox$scores
59+
#' learner$model$surv.univariate_cox$scores
6060
#'
6161
#' # only two features had a score larger than the specified `cutoff` and
6262
#' # were used to train the CoxPH model
@@ -68,13 +68,13 @@ FilterUnivariateCox = R6Class("FilterUnivariateCox",
6868
#' @description Create a FilterUnivariateCox object.
6969
initialize = function() {
7070
super$initialize(
71-
id = "surv.univariatecox",
72-
packages = c("survival"),
71+
id = "surv.univariate_cox",
72+
packages = "survival",
7373
param_set = ps(),
7474
feature_types = c("integer", "numeric", "logical"),
7575
task_types = "surv",
7676
label = "Univariate Cox Survival Score",
77-
man = "mlr3filters::mlr_filters_univariatecox"
77+
man = "mlr3filters::mlr_filters_univariate_cox"
7878
)
7979
}
8080
),
@@ -97,4 +97,4 @@ FilterUnivariateCox = R6Class("FilterUnivariateCox",
9797
)
9898

9999
#' @include mlr_filters.R
100-
mlr_filters$add("univariatecox", FilterUnivariateCox)
100+
mlr_filters$add("univariate_cox", FilterUnivariateCox)

man/Filter.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.

man/mlr_filters.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.

man/mlr_filters_anova.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.

man/mlr_filters_auc.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.

man/mlr_filters_carscore.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.

man/mlr_filters_carsurvscore.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.

man/mlr_filters_cmim.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.

man/mlr_filters_correlation.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.

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