mosmafs (version 0.1.2)

task.add.random.cols: Add Sampled Noise-Features to Task

Description

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.

Usage

task.add.random.cols(task, num, dist = rnorm)

Value

Task

Arguments

task

[Task] the input task.

num

[integer(1)] number of noise features to add.

dist

[function] function n -> numeric(n) that samples random noise features.

See Also

Other Artificial Datasets: clonetask(), create.hypersphere.data(), create.linear.data(), create.linear.toy.data(), create.regr.task(), task.add.permuted.cols()