Adds num
new features sampled from dist
to task
.
New features are inserted at random positions in the task
and named RANDOM.1
...RANDOM.[num]
The returned Task
has a $orig.features
which
is a logical vector indicating the features that were originally
in the Task
.
If the $orig.features
slot is already present in
the input task
, then the output will have added FALSE
entries at
appropriate positions.
task.add.random.cols(task, num, dist = rnorm)
Task
[Task]
the input task.
[integer(1)]
number of noise features to add.
[function]
function n
-> numeric(n)
that samples
random noise features.
Other Artificial Datasets:
clonetask()
,
create.hypersphere.data()
,
create.linear.data()
,
create.linear.toy.data()
,
create.regr.task()
,
task.add.permuted.cols()