View source: R/composed_projector.R
reconstruct.composed_projector | R Documentation |
Maps scores from the final latent space back towards the original input space using the composed projector's combined inverse projection. Requires scores to be provided explicitly.
## S3 method for class 'composed_projector'
reconstruct(x, scores, comp = NULL, rowind = NULL, colind = NULL, ...)
x |
A |
scores |
A numeric matrix of scores (observations x components) in the final latent space of the composed projector. |
comp |
Numeric vector of component indices (columns of |
rowind |
Numeric vector of row indices (observations in |
colind |
Numeric vector of original variable indices (columns of the final reconstructed matrix) to return. Defaults to all original variables. |
... |
Additional arguments (currently unused). |
Attempts to apply the reverse_transform
of the first stage's preprocessor
to return data in the original units. If the first stage preprocessor is
unavailable or invalid, a warning is issued, and data is returned in the
(potentially) preprocessed space of the first stage.
A matrix representing the reconstructed data, ideally in the original data space.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.