Skip to contents

Convert regular functional features (e.g. all individuals are observed at the same time-points) to new columns, one for each input value to the function.

Parameters

The parameters are the parameters inherited from PipeOpTaskPreprocSimple.

Naming

The new names generally append _1, _2, ... to the corresponding column name. However this can lead to name clashes with existing columns. This is solved as follows: If a column was called "x", the corresponding new columns will be called "x_1", "x_2", etc. In case of duplicates, unique names are obtained using make.unique() and a warning is given.

Methods

Inherited methods


PipeOpFDAFlatten$new()

Initializes a new instance of this Class.

Usage

PipeOpFDAFlatten$new(id = "fda.flatten", param_vals = list())

Arguments

id

(character(1))
Identifier of resulting object, default "fda.flatten".

param_vals

(named list())
List of hyperparameter settings, overwriting the hyperparameter settings that would otherwise be set during construction. Default list().


PipeOpFDAFlatten$clone()

The objects of this class are cloneable with this method.

Usage

PipeOpFDAFlatten$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

task = tsk("fuel")
pop = po("fda.flatten")
task_flat = pop$train(list(task))[[1L]]