pub fn project_with_projection<T: FloatExt, S: Data<Elem = T>, D: Dimension>(
data: ArrayBase<S, D>,
seed: u64,
reduction: &RandomProjectionReduction,
projection: &RandomProjectionKind,
) -> Result<Array<T, Ix2>, RandomProjectionCodecError>
Expand description
Applies random projection to the input data
with the given seed
,
reduction
method, and projection
kind and returns the resulting
projected array.
ยงErrors
Errors with
RandomProjectionCodecError::NonMatrixData
if the inputdata
is not a two-dimensional matrixRandomProjectionCodecError::NonFiniteData
if the inputdata
or projected output contains non-finite data