make_param_set {counterfactuals} | R Documentation |
Creates a ParamSet for the features of a data.table.
Description
Creates a ParamSet for the columns of dt
. Depending on the class of a column, a different
Param is created:
-
double
: ParamDbl -
integer
: ParamInt -
character
: ParamFct (with unique values as levels) -
factor
: ParamFct (with factor levels as levels)
Usage
make_param_set(dt, lower = NULL, upper = NULL)
Arguments
dt |
( |
lower |
(numeric() | NULL) |
upper |
(numeric() | NULL) |
Value
A ParamSet for the features of dt
.