Apply a single gene to a dataset

apply_gene(
  gene,
  train_data,
  val_data = NULL,
  target_col = NULL,
  state_cache = NULL,
  data_hash = NULL
)

Arguments

gene

A gene list representing a feature transformation.

train_data

A data.frame or data.table representing the training data.

val_data

Optional validation data.frame or data.table.

target_col

Name of the target column.

state_cache

Optional environment to cache full-dataset fitted states of stateful transformers.

data_hash

Optional pre-computed xxhash64 digest of the target column, to avoid redundant hashing when applying multiple genes.