Feed one chunk (X_chunk, Y_chunk) to an existing KF-PLS state created by
kf_pls_state_new(). The function updates exponentially weighted means and
cross-products (or exact sufficient statistics when in exact mode).
Arguments
- state
External pointer produced by
kf_pls_state_new().- X_chunk
Numeric matrix with the same number of columns
pused to create the state.- Y_chunk
Numeric matrix with
mcolumns (or a numeric vector ifm == 1). Must have the same number of rows asX_chunk.
Details
Call this repeatedly for each incoming batch. When you want model
coefficients (weights/loadings/intercepts), call
kf_pls_state_fit(), which solves SIMPLS on the accumulated
cross-moments without re-materializing all past data.