Internal helper for consistent preprocessing

.prepare_rvfl_data(
  x,
  W,
  center = NULL,
  scale_vec = NULL,
  scale_input = TRUE,
  activation,
  include_original = TRUE
)

Arguments

x

input matrix

W

random weight matrix

center

centering vector (if NULL, compute from data)

scale_vec

scaling vector (if NULL, compute from data)

scale_input

logical, whether to scale inputs

activation

activation function

include_original

logical, whether to include original features

Value

list with Z (design matrix) and preprocessing parameters