Select {mlr3torch} | R Documentation |
Selector Functions for Character Vectors
Description
A Select
function subsets a character vector. They are used by the callback CallbackSetUnfreeze
to select parameters to freeze or unfreeze during training.
Usage
select_all()
select_none()
select_grep(pattern, ignore.case = FALSE, perl = FALSE, fixed = FALSE)
select_name(param_names, assert_present = TRUE)
select_invert(select)
Arguments
pattern |
See |
ignore.case |
See |
perl |
See |
fixed |
See |
param_names |
The names of the parameters that you want to select |
assert_present |
Whether to check that |
select |
A |
Functions
-
select_all()
:select_all
selects all elements -
select_none()
:select_none
selects no elements -
select_grep()
:select_grep
selects elements with names matching a regular expression -
select_name()
:select_name
selects elements with names matching the given names -
select_invert()
:select_invert
selects the elements NOT selected by the given selector
Examples
select_all()(c("a", "b"))
select_none()(c("a", "b"))
select_grep("b$")(c("ab", "ac"))
select_name("a")(c("a", "b"))
select_invert(select_all())(c("a", "b"))
[Package mlr3torch version 0.2.1 Index]