pub fn reconstruct_into_with_projection<T: FloatExt, S: Data<Elem = T>, D: Dimension>(
projected: ArrayBase<S, D>,
reconstructed: ArrayViewMut<'_, T, D>,
seed: u64,
projection: &RandomProjectionKind,
) -> Result<(), RandomProjectionCodecError>
Expand description
Applies the (approximate) inverse of random projection to the projected
array to reconstruct the input data with the given seed
and projection
kind and outputs into the reconstructed
array.
§Errors
Errors with
RandomProjectionCodecError::NonMatrixData
if theprojected
andreconstructed
arrays are not two-dimensional matricesRandomProjectionCodecError::NumberOfSamplesMismatch
if the number of samplesN
of theprojected
array don’t match the number of samples of thereconstructed
arrayRandomProjectionCodecError::ProjectedArrayZeroComponents
if theprojected
array is of shape(n, 0)
RandomProjectionCodecError::CorruptedNumberOfComponents
if theprojected
array’s dimensionality metadata is corruptedRandomProjectionCodecError::NumberOfFeaturesMismatch
if thereconstructed
array’s dimensionalityD
does not match theprojected
array’s dimensionality metadataRandomProjectionCodecError::NonFiniteData
if theprojected
array or the reconstructed output contains non-finite data