Build and validate trial-wise design objects used by the ITEM helper layer.
The returned object has class item_bundle and carries trial-level metadata
needed by item_cv() and item_slice_fold().
Arguments
- X_t
Numeric trial-wise design matrix with shape
n_time x n_trials.- T_target
Optional supervised targets with
n_trialsrows. Accepts: numeric matrix/data.frame, numeric vector (regression), or factor/character/logical vector (classification labels).- run_id
Optional run/session identifier of length
n_trials. IfNULL, all trials are assigned to a single run.- C_transform
Optional transformation matrix used to map
X_tto the working design matrixX. Must haven_trialsrows when provided.- trial_id
Optional trial identifier vector of length
n_trials. Defaults tocolnames(X_t)when available, elseTrial_1..Trial_n.- trial_hash
Optional hash used by alignment guards. If supplied,
item_cv(..., check_hash = TRUE)validates it.- meta
Optional metadata list.
- diagnostics
Optional diagnostics list to attach to the bundle.
- validate
Logical; when
TRUErun strict structure checks.