View source: R/twoway_projector.R
partial_project.cross_projector | R Documentation |
Projects new data from either the X or Y domain onto the latent subspace,
considering only a specified subset of original features (colind
).
## S3 method for class 'cross_projector'
partial_project(
x,
new_data,
colind,
least_squares = TRUE,
lambda = 1e-06,
source = c("X", "Y"),
...
)
x |
A |
new_data |
A numeric matrix (n x length(colind)) or vector, representing
the observations corresponding to the columns specified by |
colind |
A numeric vector of column indices in the original data space
(either X or Y domain, specified by |
least_squares |
Logical; if TRUE (default), use ridge-regularized least squares for projection. |
lambda |
Numeric; ridge penalty (default 1e-6). Ignored if |
source |
Character, either "X" or "Y", indicating which domain |
... |
Additional arguments (currently ignored). |
A numeric matrix (n x d) of factor scores in the latent subspace.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.